1. Re: SaveDC failure + grprint.ew

Rad wrote:
> 
> Derek Parnell wrote:
> > 
> > Then checkout the result with
> >  
> >   <a
> >   href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp</a>
> > 
> > to find a matching error code.
> > 
> 
> The error code is 6 - Invalid Handle.
> 
> I can write to this Hdc directly using TextOut() routine, but I do not
> get proper formatting done.
> }}}
<eucode>
> 	textOut(Hdc, {"This is a test line on Preview", 200, 200, {}, {}, {}, {}})	
> </eucode>
{{{

> 
> What I tried was using grprint.ew for printer after replacing the
> printerDC by Hdc created by the preview dll.
> }}}
<eucode>
> 	printTextLeft(200,400,"This is a test line on Preview")	
> </eucode>
{{{

> 
> Is there any way I can redirect printer output to this new Hdc using
> grprint?

I don't know. I no nothing about grprint. I've tested textOut() using a DC
obtained using win32lib's getDC() and it works fine.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu