LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know the total page number of the standard report

How to know the total page number of the standard report?
 
If I insert a graph, a table, or text into the end of the standard report, how to know how much space is left for the current page?
0 Kudos
Message 1 of 4
(2,568 Views)
Hello Nettt,

This is Dominic L. from Applications Engineering at National Instruments. I am glad to assist you on this issue, however, I will need more information. What kind of standard report are you using? Word document? Excel? 

I look forward to your reply.

Thanks so much and have a wonderful day!

Best Regards,

Dominic L.
0 Kudos
Message 2 of 4
(2,536 Views)

Hi Dominic,

Report has four types: Standard report, word, excel, html. Could you answer this question for all four types? Thanks a lot!

BTW I am using LabVIEW 7.0

Best Regards,

Net

0 Kudos
Message 3 of 4
(2,531 Views)

Hello Net,

Unfortunately, we do not have any VIs in LabVIEW that can figure out the number of pages of a standard report. However, with the use of ActiveX calls you can achieve this task. Here are a couple of discussion forums which discuss this:

Excel Page Numbering with ActiveX:

http://forums.ni.com/ni/board/message?board.id=170&message.id=194479&requireLogin=False

Number Pages in Word Report:

http://forums.ni.com/ni/board/message?board.id=170&message.id=162972&requireLogin=False

There is also great documentation on using ActiveX on msdn. You can search this document for page number objects. Here is a link to this:

 http://msdn2.microsoft.com/en-us/library/aa223048(office.11).aspx

Please refer to these links. If you still have questions please feel free to let us know so we can assist you.

Thank you

 

Best Regards,

Dominic L.
0 Kudos
Message 4 of 4
(2,513 Views)