Using Win32 functions in Visual FoxPro Image Gallery
Common Dialog Box
Code examples:
Opening the Page Setup dialog box to specify the attributes of a printed page
..msdn    Add comment     W32 Constants      Translate this page
The PageSetupDlg function creates a Page Setup dialog box that enables the user to specify the attributes of a printed page.
Code examples:
Opening the Page Setup dialog box to specify the attributes of a printed page
BOOL PageSetupDlg(
  LPPAGESETUPDLG lppsd  // initialization data
FoxPro declaration:
DECLARE INTEGER PageSetupDlg IN comdlg32;
    STRING @lppsd
[in/out] Pointer to a PAGESETUPDLG structure that contains information used to initialize the dialog box.
Return value:
If the user clicks the OK button, the return value is nonzero. The members of the PAGESETUPDLG structure pointed to by the lppsd parameter indicate the user"s selections.

If the user cancels or closes the Page Setup dialog box or an error occurs, the return value is zero. To get extended error information, use the CommDlgExtendedError function.
My comment:
The PSD_RETURNDEFAULT flag allows to retrieve the printer page parameters for the default printer (including its name) without displaying the dialog box.
Word Index links for the PageSetupDlg :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2002-02-03 14:08:18
Modified: 2002-02-03 14:10:17
Visited in last 7 days: 28
User Contributed Notes: | 2005-04-23 06:01:17
how to disply print dialog box in visual foxpro
i.e. i want to disply page from to print etc

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
15 sec.Function: 'GdipCreateMatrix'
32 sec.
Function group: 'GDI+ Text'
49 sec.Function: 'DetachVirtualDisk'
Function group: 'Virtual Hard Disk (Win7)'
1.13 min.
Function group: 'GDI+ StringFormat'
1.45 min.Example: 'Enumerating ODBC drivers available on the local computer'
1.78 min.Function: 'FlushFileBuffers'
Function group: 'File Management'
2.1 min.Example: 'WAV file player'
2.42 min.Function: 'FreeLibrary'
2.7 min.Function: 'mciSendCommand'
Function group: 'Windows Multimedia'
3.02 min.Function: 'CeRegCreateKeyEx'
Function group: 'Remote Application Programming (RAPI)'
Advertise here!