🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7831

Re: Printer properties

#7831
From: Vikas Sinha
Date: Thu, 16 Dec 2004 10:00
21 lines
1582 bytes
I'm facing similar kind of situation in one of my application.


>Do you leave the printer open or do you ClosePrinter() ?
I'm closing the Printer after changing the page setup through 
printer setup dialog box.


>Do you check the return value from DocumentProperties() for errors?

>2)
>Don't do that (use external windows printer setup).
>Instead, do it from your program with PrintDlg() with the
>PD_PRINTSETUP flag.
>PrintDlg() returns the settings in the DEVMODE.
>
>It might be if you ask Windows for a new DEVMODE that it will go back
>to the original values, so keep and use the one returned from PrintDlg
>
>
Technical Details
Message-ID: <41c15caa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6620db7697e43cb9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vikas Sinha" <vikastsinha@rediffmail.com>
Sender: "Vikas Sinha" <vikastsinha@rediffmail.com>
Reply-To: "Vikas Sinha" <vikastsinha@rediffmail.com>
Subject: Re: Printer properties
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 61.246.193.66     
References: <41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41c15caa$1@newsgroups.borland.com>
Date: 16 Dec 2004 02:00:10 -0800
X-Trace: newsgroups.borland.com 1103191210 207.105.83.66 (16 Dec 2004 02:00:10 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail