Re: SaveDC failure + grprint.ew
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2006
- 432 views
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