Using Win32 functions in Visual FoxPro Image Gallery
Common Dialog Box
..msdn
ChooseColor
ChooseFont
CommDlgExtendedError
FindText
GetFileTitle
GetOpenFileName
GetSaveFileName
PageSetupDlg
PrintDlg
PrintDlgEx
TaskDialog
TaskDialogIndirect
Code examples:
Opening the Page Setup dialog box to specify the attributes of a printed page
PageSetupDlg
..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
Declaration:
BOOL PageSetupDlg(
  LPPAGESETUPDLG lppsd  // initialization data
);
FoxPro declaration:
DECLARE INTEGER PageSetupDlg IN comdlg32;
    STRING @lppsd
Parameters:
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  
FreeTranslation.com 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: 62
User Contributed Notes:
sandeshalwaysforu@rediffmail.com | 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-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.15.152)
4 day(s)Function: 'FtpGetFileSize'
 Function: 'GetProcessHeap'
 Function: 'TaskDialog'
 Function: 'mmioWrite'
Function group: 'Windows Multimedia'
 Example: 'Retrieving the state of your Internet connection'
 Example: 'Enumerating MIDI output devices'
 Example: 'Running a regular FoxPro form while main VFP window is minimized'
 Function: 'VirtualAllocEx'
Function group: 'Memory Management'
Google
Advertise here!