LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

Excel

已解决!
转到解答

Hi..

 

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

0 项奖励
1 条消息(共 6 条)
4,680 次查看
解答
接受人 sks1990

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.

0 项奖励
2 条消息(共 6 条)
4,663 次查看

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

0 项奖励
3 条消息(共 6 条)
4,659 次查看

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.

0 项奖励
4 条消息(共 6 条)
4,654 次查看

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

0 项奖励
5 条消息(共 6 条)
4,597 次查看

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.

0 项奖励
6 条消息(共 6 条)
4,585 次查看