Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to display Windows On-Screen Keyboard
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Winsock: sending email messages (SMTP, port 25)
System Image List Viewer
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Custom HttpRequest class (WinHTTP)
The window and its ancestors
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Mapping and disconnecting network drives
Custom FTP Class for Visual FoxPro application
Using EnumPrinters function to enumerate locally installed printers
Displaying the associated icons and descriptions for files and folders
How to activate Windows Calculator
How to download a file from the FTP server using FtpGetFile
Sending email messages with Simple MAPI
Confining Windows calculator inside the VFP main window
Windows Shell Icons displayed and exported to ICO files (Vista)
How to print FoxPro form
Adding a background image to VFP report (VFP9, ReportListener)

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
Before you begin:


Download the texture used in this code sample. Otherwise use any image file (BMP, GIF, JPEG, PNG, or TIFF) of reasonable size and quality.

See also:
  • Printing vertical text on VFP reports via generated images
  •  
      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:
    • ~
    2213 bytes  
    Created: 2009-12-16 16:40:20  
    Modified: 2009-12-17 09:46:57  
    Visits in 7 days: 90  
    Listed functions:
    GdipCreateTexture
    GdipDeleteBrush
    GdipDisposeImage
    GdipFillRectangle
    GdipLoadImageFromFile
    GdipScaleTextureTransform
    Printer friendly API declarations
    My comment:
    Picking a texture that is light, unobtrusive and improves the perception of a report is not an ordinary task.

    Notice that the sample code does not call GdiplusStartup and GdiplusShutdown. Obviously the instance of ReportListener takes care of those calls.

    To find the left and top unprintable margins for a particular printer, call GetDeviceCaps with the nIndex parameter set to PHYSICALOFFSET (X | Y) . To obtain the size of the printable area use HORZRES and VERTRES constants.
    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 (184.73.7.143)
    6.3 min.Function: 'GdipGetDpiY'
    1.07 hrs.Function: 'CreateCompatibleBitmap'
    Function group: 'Bitmap'
    1.08 hrs.Function: 'JetRetrieveColumn'
    3.06 hrs.Function: 'ReadFile'
     Example: 'Obtaining window class name for the main VFP window'
    4.01 hrs.Example: 'Using InternetSetFilePointer when resuming interrupted download from the Internet'
     Function: 'GetMenuItemCount'
     Function: 'CeRapiInit'
    Function group: 'Remote Application Programming (RAPI)'
    5.06 hrs.Example: 'Closing Windows'
    5.51 hrs.Function: 'SetClipboardViewer'
    Function group: 'Clipboard'
    Google
    Advertise here!