<!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;">&nbsp;</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;">&nbsp;</p>
<p style="margin:0px;padding:0px;">#include
&lt;cairo-win32.h&gt;<br /><br />int main(int argc, char
*argv[])<br />{<br />&nbsp; HDC hDC;<br />&nbsp; cairo_t
*cr;<br />&nbsp; cairo_surface_t *surface;<br />&nbsp; <br
/>&nbsp; hDC = CreateDC ("WINSPOOL", "EDV", NULL, NULL);<br
/>&nbsp; surface = cairo_win32_printing_surface_create
(hDC);<br />&nbsp; cr = cairo_create (surface);<br /><br
/>&nbsp; cairo_select_font_face (cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CAIRO_FONT_WEIGHT_BOLD);<br />&nbsp; cairo_set_font_size
(cr, 12.0);<br /><br />&nbsp; cairo_move_to (cr, 10.0,
135.0);<br />&nbsp; cairo_show_text (cr, "Hello");&nbsp; <br
/>&nbsp; cairo_show_page (cr);<br /><br />&nbsp; printf
("%s\n",&nbsp; cairo_status_to_string (cairo_surface_status
(surface)));<br />&nbsp; cairo_surface_destroy (surface);<br
/>&nbsp; cairo_destroy (cr);<br />&nbsp; <br />&nbsp;
DeleteDC(hDC);<br /><br />&nbsp; return 0;<br />}</p>
<p style="margin:0px;padding:0px;">&nbsp;</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;">&nbsp;</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;">&nbsp;</p>
<p style="margin:0px;padding:0px;">&nbsp;</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>