1. Help with printing?
I've been trying to add printing to Win32Lib. All the parts are in place,
but it's not working. At this point, I'm stuck - I *though* I had it working
a couple of months ago, doing the same thing in Llama.
It's failing at StartDoc, although I can't say why. The getPrinter (a
wrapper around PrintDlg) seems to be working correctly, where it gets what
looks like a good DC. I call startDoc (a wrapper around StartDoc), and it
fails.
Anyone want to take a crack at it? The latest bleeding edge version of
Win32Lib is at:
www.lanset.com/dcuny/euphoria.htm
The test program I'm using is PRINT.EXW.
Thanks!
-- David Cuny
2. Re: Help with printing?
- Posted by Bernie Ryan <bwryan at PCOM.NET>
Sep 23, 1999
-
Last edited Sep 24, 1999
David
How come you didn't initialize PRINTDLG_hwndOwner in the your
PRINTDLG structure ?
Bernie
3. Re: Help with printing?
- Posted by David Cuny <dcuny at LANSET.COM>
Sep 23, 1999
-
Last edited Sep 24, 1999
Sammy Mitchell wrote (in a private e-mail)
> In your DOCINFO "structure", you have the
> DOCINFO_cbSize defined as an Integer, for
> which you allocate 2 bytes. However, the win32
> header files have this field specified as a C int,
> which is 32 bits in Win32 land.
That took care of the bug.
Bernie Ryan wrote:
> How come you didn't initialize PRINTDLG_hwndOwner
> in the your PRINTDLG structure?
Good point. I should fill it in.
Thanks!
-- David Cuny