10-15-2009 05:38 AM
i want to know the keywords for the reporting my file... that is for example for newline printing keywords is <newline> and tab is <tab>..
same way i want to know about the keywords...
10-15-2009 08:20 AM
Can you explain in more detail? ..or show us some example code?
Are you wanting to know which ASCII characters are contained or which should be used a delimiters in an txt report file?
10-15-2009 11:31 PM
suppose i want to print the report of my program using report generating tool.... in set header text or in set footer text i want to display the date, time, etc....
And the same case if i'm using append to the text means i can use the tab the text with the key word as <tab>
and the same if i want to display new line means its keywords is <newline>....
some keywords they are: Tab - <tab>
NEWLINE - <newline>, date-<longdate> , time - < time>
similarly i want to display the page no, date in this format as 16/10/2009 etc...
10-16-2009 12:09 AM - edited 10-16-2009 12:10 AM
It's actually in the LabVIEW Help and at this link.
Search for Using Tokens in Reports in LabVIEW Help.
Cut/Paste below:
The following list describes the tokens available in LabVIEW.
Token | Description |
---|---|
<tab> | (Windows) For standard reports, LabVIEW indents the text to the next tab location. For HTML reports, LabVIEW interprets this token as <br>. |
<page> | Current page number. LabVIEW ignores this token for HTML reports. |
<pages> | Total number of pages. LabVIEW ignores this token for HTML reports. |
<pagenofm> | Current page number with the total number of pages in the
report. LabVIEW ignores this token for HTML reports. Example: 7 of 30 |
<shortdate> | Current date in the form xx/xx/xx. Example: 10/5/98 |
<longdate> | Current date in the form Day, Month and
Date, Year. The month, date, and year order defaults to the date settings of your operating system. Example: Monday, October 05, 1998 |
<time> | Current time in the form Hour:Minute:Second
AM/PM. Defaults to the clock settings of your computer. Example: 1:58:22 PM |
<newline> | Inserts a line break in the report. |
Hope that's what you're looking for.
Matt
10-16-2009 01:34 AM
thank u matt... i need this answer only...
can u tell any other extra short key format can use in report generation.. im asking because to make the report so good....!!!!!!!!!!!
10-16-2009 02:50 AM
There's a lot more you can do by using standard HTML tags with the HTML style report, but the standard report format is fairly basic (but clean).
For things like formatting the date, you can just do normal string manipulation with the Format Date/Time String VI as below:
Also, if the PC running the report has Microsoft Office Word installed, then you can have a great looking report with very little effort. See NI Example Finder for examples such as Sample Report (Word).vi and Generate Report From Template (Word).vi. I've had good luck using Word with templates.
Matt
10-18-2009 01:44 AM