Altometer 0 Posted March 30, 2011 (edited) Hi. I am trying to design a program that will output basic labels for pallets. The input is as follows, $Line1,$line2,$line3,$line4 An example of the output has been included as a word document. I need the output of my program to be in this exact format. Here are the methods that I have tried: 1) Using a mouse clicking/text replacement macro(too buggy and slow, not versatile for other computers) 2) outputing to an html file to print(the text is not large enough) 3) using writefiletoline directly to a .doc, however all text formatting is lost. any insight or help in getting this format working would be great! I have the rest of the code worked out without any problems. edit:css is a no go as well, won't work with the machine this program will be primarily run on. Edited March 31, 2011 by Altometer Share this post Link to post Share on other sites
PsaltyDS 39 Posted March 30, 2011 (edited) If you have MS Word available, use a template file and tweak the text with the _Word* functions of the Word.au3 UDF (see help file). Also, if your HTML text was wrong you just need to fix that attribute of you HTML formatting. That option should still have been usable. Also, also, you could do it in a _GuiCtrlRichEdit_* control and stream it to an .rtf file to print, etc. Lots of options... Edited March 30, 2011 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
Altometer 0 Posted March 31, 2011 The word.au3 library worked beautifully ! Thank you so much Share this post Link to post Share on other sites