问题如图片所示
我使用的代码如下:- if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- sfd.Filter = "PDF 文件 (*.pdf)|*.pdf";
- PrintInfo pPrintInfo = new PrintInfo();
- pPrintInfo.PrintToPdf = true;
- pPrintInfo.ZoomFactor = 1F;
- pPrintInfo.PdfFileName = sfd.FileName + ".pdf";
- fpSpread1.ActiveSheet.PrintInfo = pPrintInfo;
- fpSpread1.PrintSheet(fpSpread1.ActiveSheet);
- }
复制代码
,出来的效果图如上,
这样的问题是不是和我private void FormalReportCheckFrm_Load(object sender, EventArgs e)
{
fpSpread1.ZoomFactor = 1.158F;
} |
|