<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//DE"><HTML><HEAD><META
HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=us-ascii"><TITLE>Message</TITLE></HEAD><BODY><div
style="font-family:arial,helvetica,sans-serif;font-size:10pt"><p
style="margin:0px;padding:0px;">Hello,</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">I want to use the
cairo_win32_printing_surface to get printing working under
windows. I don't get any error message, although
cairo_status is success, but the printer is doing
nothing.</p>
<p style="margin:0px;padding:0px;">I tried the following
code:</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">#include
<cairo-win32.h><br /><br />int main(int argc, char
*argv[])<br />{<br /> HDC hDC;<br /> cairo_t
*cr;<br /> cairo_surface_t *surface;<br /> <br
/> hDC = CreateDC ("WINSPOOL", "EDV", NULL, NULL);<br
/> surface = cairo_win32_printing_surface_create
(hDC);<br /> cr = cairo_create (surface);<br /><br
/> cairo_select_font_face (cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,<br
/>
CAIRO_FONT_WEIGHT_BOLD);<br /> cairo_set_font_size
(cr, 12.0);<br /><br /> cairo_move_to (cr, 10.0,
135.0);<br /> cairo_show_text (cr, "Hello"); <br
/> cairo_show_page (cr);<br /><br /> printf
("%s\n", cairo_status_to_string (cairo_surface_status
(surface)));<br /> cairo_surface_destroy (surface);<br
/> cairo_destroy (cr);<br /> <br />
DeleteDC(hDC);<br /><br /> return 0;<br />}</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">Is there simply
something missing or am I doing something wrong?</p>
<p style="margin:0px;padding:0px;">I use Cairo-1.8.8-2 on
windows-XP-system whith Dev-c++ and Mingw</p>
<p style="margin:0px;padding:0px;">The Device-Context I get
from CreateDC is ok, because when I use StartDoc the Printer
begins to print.</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">Has anyone an idea?</p>
<p style="margin:0px;padding:0px;">Thank's for your
help</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"> </p></div>
<br>--<br><!-- AdSpace freenet EMO Webmail Banner -->
<a
href="http://adserver.freenet.de/click.ng/site=fn&affiliate=fn_mail&prod=fn_mail&tbl=webmail&ppos=14&rgtg=256&TransactionID=1253178130169236"
target="_blank"><img
src="http://adserver.freenet.de/image.ng/site=fn&affiliate=fn_mail&prod=fn_mail&tbl=webmail&ppos=14&rgtg=256&TransactionID=1253178130169236"
border="0"></a><!-- / AdSpace -->
</BODY></HTML>