Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending image to printer
Message
From
06/11/2007 11:43:54
 
 
To
21/10/2007 07:06:14
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01262328
Message ID:
01267008
Views:
17
thank you all
you are very kind
Alessio
>>Is it possible to send directly an image (jpg or bmp) directly to the printer without passing throught the report ?
>>if so how ?
>>Thanks
>>Alessio
>
>
>Hi Alessio,
>
>Here are 2 ways:
>
>Print Individual Images Revisited
>http://weblogs.foxite.com/cesarchalom/archive/2007/01/17/3143.aspx
>
>
>USING GDIPLUS-X:
>
>Link at CodePlex:
>http://www.codeplex.com/VFPX/Wiki/View.aspx?title=GDIPlusX&referringTitle=Home
>
>
>
* Initialize GdiPlusX
>DO LOCFILE("System.prg")
>
>WITH _SCREEN.System.Drawing
>
>   * Create a new Bitmap
>   LOCAL loBmp as xfcBitmap
>   loBmp = .Bitmap.FromFile(GETPICT())
>
>   * Prints the image
>   loBmp.ToPrinter()
>
>ENDWITH
>
>PLease note that the method ToPrinter() allows many customizations, like choosing the printer, stretching, adjust to page, bestfit, alignment, portrait/ landscape, etc. If you need one of those, call again or check the source code in the library.
>
>Hope this helps
>
>Cesar
Previous
Reply
Map
View

Click here to load this message in the networking platform