1. Re: SaveDC failure + grprint.ew
- Posted by Rad <radhx at rediffmail.com> Feb 23, 2006
- 440 views
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.
textOut(Hdc, {"This is a test line on Preview", 200, 200, {}, {}, {}, {}})
What I tried was using grprint.ew for printer after replacing the printerDC by Hdc created by the preview dll.
printTextLeft(200,400,"This is a test line on Preview")
Is there any way I can redirect printer output to this new Hdc using grprint? Regards, Rad.