NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
sks1990
Posts: 19
0 Kudos
Accepted Solution

Excel

Hi..

 

How can i apply header and footer to excel sheet using program??

Active Participant
menchar
Posts: 1,135
0 Kudos

Re: Excel

You can't, there's no such concept as a worksheet header or footer in Excel.

 

You can name a worksheet, and you can put text into cells at the top of the worksheet and further down on some higher numbered row using the Excel automation available form CVI.

 

But there's no header and footer as there is with Word, at least to my knowledge.

 

Excel automation help is available in CVI, along with sample code, just search for Excel in the CVI help.

Member
sks1990
Posts: 19
0 Kudos

Re: Excel

Can i convert the excel report into a pdf file...?? 

Active Participant
menchar
Posts: 1,135
0 Kudos

Re: Excel

Yes, I believe so, at least you can with Excel 2007.  If you can't invoke the "Save As" functionality via the CVI Excel automation interface directly, you can write an Excel macro to do it and then invoke the macro from CVI.  I may have some sort of PDF plug-in in my copy of Excel 2007, not sure if Excel 2007 has this capability out of the box.

Member
ASIC_LabRat
Posts: 108
0 Kudos

Re: Excel

Um... yes there is Headers/Footers in Excel... but only visable in the printer mode, is this what the original question is looking for? wanting to change the header / footer info on a printout?

 

ChipB

Active Participant
menchar
Posts: 1,135
0 Kudos

Re: Excel

Could be that it is.  I hadn't realized that Excel allowed a header / footer on a printout, I just knew that there was no such thing incorporated into the worksheet itelf.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page