Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Winsock: sending email messages (SMTP, port 25)
Mapping and disconnecting network drives
How to display the Properties dialog box for a file (ShellExecuteEx)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Disk in drive A:
How to download a file from the FTP server using FtpGetFile
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to play AVI file on the _screen
Using Font and Text functions
Enumerating network resources
Using EnumPrinters function to enumerate locally installed printers
Vertical Label control
Creating irregularly shaped FoxPro form using transparency color key
Changing system colors
Custom HttpRequest class (WinHTTP)
Subclassing CommandButton control to create BackColor property
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Converting Unicode data from the Clipboard to a character string using a given code page
Using the DrawText function
Using Common Controls: the Header Control
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: 98  
    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 (23.22.252.150)
    6 sec.Articles
    9 sec.Function: 'LookupPrivilegeName'
    14.6 min.Example: 'How to make a VFP form fading out when released (GDI+ version)'
    14.67 min.Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
    14.73 min.Example: 'Enumerating servers of the specified type (e.g. SQL Server) in the primary domain'
    1.39 hrs.Function: 'SetBkColor'
    Function group: 'Painting and Drawing'
    1.5 hrs.Example: 'Creating the Open dialog box to specify the drive, directory, and name of a file to open'
     Example: 'Starting a dialog box for connecting to network resources (mapping network drive)'
    4.44 hrs.Example: 'URL: splitting into its component parts'
    6.33 hrs.Function: 'GdipGetDpiX'
    Function group: 'GDI+ Graphics'
    Google
    Advertise here!