Article View: borland.public.cppbuilder.nativeapi
Article #7837Re: Printer properties
From: Keith
Date: Thu, 16 Dec 2004 15:24
Date: Thu, 16 Dec 2004 15:24
24 lines
1868 bytes
1868 bytes
"Thomas J." wrote: > Thanks a lot. The first exmaple with the page setup is working, but not the > second. No dialog is shown. From MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/commondialogboxreference/commondialogboxfunctions/printdlg.asp TinyURL: http://tinyurl.com/4rbwk In your first dialog, you were using a pointer to a PAGESETUPDLG structure, hence PageSetupDlg(pageSetup). In your second dialog, you are using a local PRINTDLG structure. So be sure you have the & operator in front of printerSetup in the call result = PrintDlg(&printerSetup); I checked the code I provided using BCB 5 Enterprise on Win98SE and both dialogs are presented. keith
Technical Details
Message-ID:
<41C1A8C1.45910074@sbcglobal.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com> <41c162f7@newsgroups.borland.com> <41C19B3E.7A34D7BA@sbcglobal.net> <41c1a15b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6620db7697e43cb9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <41C1A8C1.45910074@sbcglobal.net> Date: Thu, 16 Dec 2004 09:24:49 -0600 From: Keith <kdopson@sbcglobal.net> X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Printer properties References: <41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com> <41c162f7@newsgroups.borland.com> <41C19B3E.7A34D7BA@sbcglobal.net> <41c1a15b$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.71.227.85 X-Trace: newsgroups.borland.com 1103210690 65.71.227.85 (16 Dec 2004 07:24:50 -0800) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail