将数据倒入到excel后,加上页眉(页眉有图片),我最后的34分全部贡献啊!!!!!帮忙帮忙!!!!
我用的是asp.net+c#
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
Excel.Range oRng;
oSheet.PageSetup.RightHeaderPicture.Filename = "d:/xx.jpg ";
可是页眉图片怎么也显示不出来!!!
------解决方案--------------------oSheet.PageSetup.RightHeaderPicture.Filename = "d:/xx.jpg ";
oSheet.PageSetup.RightHeader = "&G ";
就可以了