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

new topic     » topic index » view message » categorize

2. Re: Help with printing?

David
   How come you didn't initialize PRINTDLG_hwndOwner in the your
   PRINTDLG structure ?
Bernie

new topic     » goto parent     » topic index » view message » categorize

3. Re: Help with printing?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu