[progress Communities] [progress Openedge Abl] Forum Post: Re: .net Printersettings

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
I played with your code a bit and it looks like SetHdevmode works as expected (that is, it copies the dmCopies member from the supplied DEVMODE to the Copies property of the PrinterSettings object). I think the problem is that the DEVMODE doesn't have the right value for dmCopies in the first place. I added a bit of code to modify dmCopies in the DEVMODE before calling SetHdevmode and Copies then returned the number I set. You can see if you can duplicate my results by inserting the following code before the call to SetHdevmode. DEFINE VARIABLE DevMode AS MEMPTR. SET-POINTER-VALUE(DevMode) = lpDevMode. PUT-SHORT(DevMode, 87) = 13.

Continue reading...
 
Status
Not open for further replies.
Back
Top