打印pdf代码:
PrintInfo printInfo = new PrintInfo();
printInfo.PrintToPdf = true;
printInfo.PdfFileName = GetFileNameToExport(1);
printInfo.PrintType = PrintType.CurrentPage;
for (int i = 0; i < fpSpread1.Sheets.Count; i++) {
fpSpread1.ActiveSheet.PrintInfo = printInfo;
}
fpSpread1.PrintSheet(-1);
触发导出事件时:
file:///C:/Documents%20and%20Settings/yong%20fu/Desktop/1.png
弹出一个对话框,貌似我的PdfFileName属性无效! 怎么不让对话框出来呢? |
|