 |
| Adding a background image to VFP report (VFP9, ReportListener) |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
| 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 rating: 0/10 (0 votes) | |
| 2213 bytes Created: 2009-12-16 16:40:20 Modified: 2009-12-17 09:46:57 Visits in 7 days: 90 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| 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: |
 |
|