LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

print txt/doc files

I have txt  file (file 16.jpg)
 
I print by prog that look like in 23.jpg
 
But my printed file is 31.jpg


Message Edited by Vaj on 07-31-2008 11:40 AM

Message Edited by Vaj on 07-31-2008 11:40 AM
Download All
0 Kudos
Message 1 of 10
(4,218 Views)
Hi Vaj,
the character length depends a little bit, so it could be that there are this changes. If you already use the Report Genereation Toolkit, then you can create a table, write your data to it and print the table, then you will get what you see.

Hope it helps.
Mike
Message 2 of 10
(4,205 Views)
The text file seems to be formatted using a mono-spaced font. This means you should print it that way as well. Converting the text into a table would require you to do a fair bit of parsing given the format of the text file, and even then you won't get what you want. You need to set the font prior to printing the report using the Set Report Font VI.
Message 3 of 10
(4,195 Views)

The txt file is bilded by labview and must stay *.txt/*.doc (demand from client)

When i open file by simple read func, file openend file is in another font (if i write in cuurier font) . The other font is Ariel.

Then i need to print this file, but printing file is automatic in Ariel font.  Why?

Why i can print simple txt file in font that this file saving?

If this can be done in labview? This is posibale to chose font of printing text?

0 Kudos
Message 4 of 10
(4,178 Views)

Hi Vaj,

see the attached example, please. It shows how you can set all necessary properties, to print it and to see it in LabView like in notepad.

Hope it helps.
Mike

Message 5 of 10
(4,174 Views)

Tnx to MikeS81 , your programm working great!!!!!

But i have last problem , the page border in word file is smaller then in print pages, so few rows of next page print in bottom of page.

If posible to solve this by VI or i must change creation file?

0 Kudos
Message 6 of 10
(4,156 Views)

Hi Vaj,

i´m not really understand. Do you have more pages now? You can change the Font size, maybe it helps. Do you use the "standard report" to print it, or do you create a word report?

Mike

0 Kudos
Message 7 of 10
(4,145 Views)
I ask about changing limit of page (margins) , but i solve this by using your programm. Tnx to all/
0 Kudos
Message 8 of 10
(4,112 Views)

I have one more question: I must print pictire , how i can bring together pictire and text?

0 Kudos
Message 9 of 10
(4,095 Views)
Hi Vaj,
there is a function with which you can insert pictures into your report (in LV7.1 it is "Append Image to Report"). Did you try it? Where do you have problems?

Mike
0 Kudos
Message 10 of 10
(4,087 Views)