Jump to content

[Solved] Text size when outputting to a .doc file


Recommended Posts

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 by Altometer
Link to comment
Share on other sites

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 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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...