i wish to create a printing function for my desktop application.
i used the desktop only.dll file. and i used this code:-
printer.New1
printer.PrintFile(AppPath&"\01.jpg")
when i run my program print function is executing successfully but the output of the print is not the image i selected. i got three pages with fully encrypted text. i searched the basic4ppc help page. i got this statement from there Printing is done with PrintFile which prints a text file and PrintString which prints a given string. but i want to print a selected image or document.
can you help me?
jothis
:sign0085:
I suggest that you find a PC application that will accept a command-line string which specifies that a named file is to be printed on the default printer.
I cannot suggest such a program but you can do your own searches. Once you have found and installed it then call it using the "Shell()" command.
I thing you don't understand what i want. I Looked Your Richtextbox Library it is nice.
This is My Problem is
I have a folder named images and many jpg images on this folder. And I Created a table named images i listed the image names to this table. And I have a button Print. When I Select a row in a table and click on the print button i want to print the selected image
When the print button is pressed read the image into a Bitmap. Use CopyImageToClipboard to get the image to the Clipboard, Use PasteBitmap to get it into a document and then print it from there. The demo file with the library shows how to print.