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: 21
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-2017 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.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
1 sec.Function: 'CryptEnumProviders'
Function group: 'Cryptography Reference'
2 sec.Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
Language: 'C#'
4 sec.Function: 'GetTextFace'
5 sec.Example: 'GDI+: Using Scale and Shear transformations'
7 sec.Function: 'GdipGetPageUnit'
8 sec.Function: 'CryptDeriveKey'
9 sec.Function: 'SQLTables'
11 sec.Example: 'Placing an arbitrary rectangular area of main VFP window on the Clipboard'
12 sec.Example: 'Enhanced GetFont dialog'
14 sec.Example: 'Running a regular FoxPro form while main VFP window is minimized'
Advertise here!