Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
URL: splitting into its component parts
Using GetBinaryType (WinNT only) to determine the type of an executable file
Drawing Windows frame controls using the DrawFrameControl function
Drawing Windows predefined bitmaps using the LoadBitmap functions
How to obtain Content-Type value for a file type from the System Registry
Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling
Reading and setting the priority class values for the current process and thread
Shortcut Menu Class
Storing the environment strings in cursor
Using the heap of the calling process to allocate memory blocks
GDI+: printing image file
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
String representation for disk or memory capacity
How to retrieve adapter information for the local computer (including MAC address)
Retrieving configuration information for the specified workstation (Win2000/XP)
Retrieving list of Global Atom names
Uploading file to the FTP server using InternetWriteFile
Validating the heap of the calling process
Creating a device context for the specified printer
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Displaying standard progress dialog box when copying files
Enumerating files opened on the network
How to empty the Recycle Bin
Writing to INI file
Retrieving Printer Device Context using PrintDlg function

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
2576 bytes  
Created: 2001-09-17 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 127  
Listed functions:
DeleteDC
PrintDlg
Printer friendly API declarations
My comment:
There are several ways to get a printer device context. Once you obtain the value, you have many GDI functions available for sending graphical output to the printer: print text and images.

Flag PD_RETURNDEFAULT allows you to get the default printer device context without even a displaying the dialog box. I believe this option is quite useful.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.20.129.212)
4 sec.Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
7 sec.Function: 'ws_select'
Function group: 'Windows Sockets 2 (Winsock)'
12.91 hrs.Function: 'GetDiskFreeSpaceEx'
 Example: 'FindText -- the hopeless and useless Common Dialog'
 Function: 'StrFromTimeInterval'
Function group: 'String'
13.95 hrs.Example: 'Extended MessageBox Class'
 Example: 'Copying files as a transacted operation (Vista)'
 Function: 'GetWindowsDirectory'
Function group: 'System Information'
14.64 hrs.Example: 'Running a regular FoxPro form while main VFP window is minimized'
15.21 hrs.Example: 'Writing to INI file'
Google
Advertise here!