Thanks for help. I will try it as soon as I can. One question though. How do I specify a printer to print to?
>>>>I am converting GIFs encoded data into an unencoded and create a GIF file. Then I print it out. How can I print unencoded data directly to a printer?
>>>
>>>What do you mean by "encoded data"? It it base-64, or something like that?
>
>>Yes it is. I am decoding it and then I am creating a gif file. I want to skip file creation and print decoded data directly to the printer.
>
>You can use GDIPlusX for this. Download the library from here:
http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx>
>Sample code:
>
>DO (LOCFILE("system.prg"))
>loStream = _SCREEN.System.IO.MemoryStream.New(STRCONV(lcEncodedGIF,14))
>loImg = _SCREEN.System.Drawing.Image.FromStream(loStream)
>loImg.ToPrinter()
>
>loImg = NULL
>loStream = NULL
>