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>
>
>
>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