create a text (letter) to be printed from a dialog box
-
Hello, In fact, I have a dialog box where I retrieve several information (name, address, etc), and I would like to create a letter (so a text document) using these informations and print it directly (no storage and differed print, but asking for printer ...). The possibility to have different fonts/size in the letter, to be able to choose the printer, etc would be great. Could someone indicate me the different steps (how to create document, how update it with variables linked to the dialog box, how ask for the printer, how to print it, how to change fonts, colors, etc) to arrive at this result . At least a draft, i will look deeper by myself after. Thanks in advance DD :confused:
-
Hello, In fact, I have a dialog box where I retrieve several information (name, address, etc), and I would like to create a letter (so a text document) using these informations and print it directly (no storage and differed print, but asking for printer ...). The possibility to have different fonts/size in the letter, to be able to choose the printer, etc would be great. Could someone indicate me the different steps (how to create document, how update it with variables linked to the dialog box, how ask for the printer, how to print it, how to change fonts, colors, etc) to arrive at this result . At least a draft, i will look deeper by myself after. Thanks in advance DD :confused:
Some other folk posted a message some days ago about using a hidden
CRichEditCtrl
for printing purposes. Doing a quick search on the net yielded this article. Also, creating a simple RFC on the fly is easy. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo