Using Win32 functions in Visual FoxPro Image Gallery
Printing and Print Spooler
..msdn
AddPort
AddPrinter
ClosePrinter
ConfigurePort
ConnectToPrinterDlg
DeletePort
DeviceCapabilities
DocumentProperties
EndDoc
EndPage
EnumForms
EnumJobs
EnumPorts
EnumPrinterData
EnumPrinterDrivers
EnumPrinters
EnumPrintProcessorDatatypes
EnumPrintProcessors
Escape
FindClosePrinterChangeNotification
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
FreePrinterNotifyInfo
GetDefaultPrinter
GetPrinter
GetPrinterData
GetPrinterDriverDirectory
GetPrintProcessorDirectory
OpenPrinter
PrinterProperties
SetDefaultPrinter
SetJob
SetPrinter
StartDoc
StartPage
Code examples:
Configuring DEVMODE structure for a printer
Displaying printer-properties Property Sheet for the specified printer
Enumerating forms supported by a specified printer
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
How to delete all print jobs for a printer
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
How to retrieve the number of print jobs queued for the printer
Printing Image File, programmatically set print page orientation to landscape
Retrieving default spooling directory name
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Using Change Notification Objects to monitor changes to the printer or print server
OpenPrinter
..msdn    Add comment     W32 Constants      Translate this page
The OpenPrinter function retrieves a handle to the specified printer or print server or other types of handles in the print subsystem.
Code examples:
Printing Image File, programmatically set print page orientation to landscape
Using Change Notification Objects to monitor changes to the printer or print server
How to retrieve the number of print jobs queued for the printer
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
How to delete all print jobs for a printer
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Retrieving default spooling directory name
Configuring DEVMODE structure for a printer
Displaying printer-properties Property Sheet for the specified printer
Declaration:
BOOL OpenPrinter(
  LPTSTR pPrinterName,         // printer or server name
  LPHANDLE phPrinter,          // printer or server handle
  LPPRINTER_DEFAULTS pDefault  // printer defaults
);
FoxPro declaration:
DECLARE INTEGER OpenPrinter IN winspool.drv;
    STRING    pPrinterName,;
    INTEGER @ phPrinter,;
    INTEGER   pDefault
Parameters:
pPrinterName
[in] Pointer to a null-terminated string that specifies the name of the printer or print server, the printer object, the XcvMonitor, or the XcvPort.

phPrinter
[out] Pointer to a variable that receives a handle to the open printer or print server object.

pDefault
[in] Pointer to a PRINTER_DEFAULTS structure. This value can be NULL.
Return value:
If the function succeeds, the return value is a nonzero value.
Word Index links for the OpenPrinter :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-30 21:02:55
Modified: 2002-12-30 21:04:44
Visited in last 7 days: 33
User Contributed Notes:
There are no notes on this subject.


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.92.239.26)
3 sec.Function: 'RegCreateKeyEx'
4 sec.Function: 'WNetAddConnection'
Function group: 'Windows Networking'
9 sec.Example: 'GDI+: Scrolling through large image using the mouse'
11 sec.Function: 'CeCopyFile'
Function group: 'Remote Application Programming (RAPI)'
18 sec.Function: 'mmioAscend'
Function group: 'Windows Multimedia'
1.32 min.Function: 'GetForegroundWindow'
Function group: 'Window'
2.03 min.Function: 'GetTextExtentPoint32'
Google
Advertise here!