Change DevMode

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Marc

Change DevMode

Post by Marc » 10 Dec 2009, 13:03

 Posted by:  Marc 

Hi

We work with TeamDeveloper V4.2 and want upgrade to V5.1 Sp6.

The Function PrinterSetting_Ansi.apl change the DevMode used by WinApi Ansi-Functions ( number of copies ).

Now we want change DevMode with WinApi Unicode-Functions (PrinterSettings_Unicode.apl ).

Know someone what must be changed, so that the function PrinterSettings_Unicode.apl runs?

Thanks

Marc


You do not have the required permissions to view the files attached to this post.

sbeltrame
Switzerland
Posts: 212
Joined: 07 Jun 2022, 14:13
Location: Switzerland

Re: Change DevMode

Post by sbeltrame » 10 Dec 2009, 20:49

 Posted by:  Stefan Beltrame 

Grüezi Marc

Set nCopiesOffSet = 64+2*4+4+5*2

because dmDeviceName in the sturcture DEVMODE is wide char.

Regards
Stefan

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests