Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GDIplusX
Message
From
20/11/2007 08:28:25
 
 
To
20/11/2007 08:07:02
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01269875
Message ID:
01270137
Views:
23
Hi Peter,

Sorry, I'm a little bit busy to make tests at this moment,

But here are the Parameters that TOPRINTER() accepts:
LPARAMETERS tnStretch, tcPrinterName, tnOrientation, tnAlignment
	
* tnStretch
*   Specifies how an image is sized to fit inside a control. Available at design time and run time.
*   0 - Clip. The image is clipped to fit the page. (Default)
*   1 - Isometric. The image resizes to fit the page while maintaining its original proportions.
*   2 - Stretch. The image resizes to fit the page, but does not maintain its original proportions.
		
* tcPrinterName
*   Specifies the name of the printer, the same of GETPRINTER()

* tnOrientation:
*   0 - Portrait
*   1 - Landscape
		
* tnAlignment
*   Specifies a numerical value representing the alignment of the image in the page.
*   0 - Vertically Centered Left.
*   1 - Vertically Centered Right.
*   2 - Centered. Centers image vertically and horizontally.
*   4 - Top Left. Aligns image in top left corner of the page.
*   5 - Top Right. Aligns image in top right corner of the page.
*   6 - Top Center. Aligns image at the top and horizontally centered on the page.
*   7 - Bottom Left. Aligns image in the bottom left corner of the page.
*   8 - Bottom Right. Aligns image in bottom right corner of the page.
*   9 - Bottom Center. Aligns image at the bottom and vertically centered on the page.
So, for your case, You may try:
This.oMultif.ToPrinter(1)
Play a bit with the parameters, I'm sure you'll find a good solution.

About Zimbabwe, that's a long story...
Please read my previous answer, on MEssage #1267362

Regards

Cesar




>that works great ,except it does not fit the image on the page
>Maybe this can be set with parameters?
>
>Peter
>>
>>Please try the following:
>>
>>This.oMultif.ToPrinter()
>>
>>
>>ToPrinter() accepts other parameters, and allows some ccol ways to print, such as landscape, Fit to page, rotate, etc...
>>
>>I hope to blog about this in the next few days.
>>
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform