这个为什么有的就没有线啊,我已经使用了showGrid属性啊,,,
这是我的打印函数
private void 打印ToolStripMenuItem_Click(object sender, EventArgs e)
{
// 设置打印属性
PrintInfo pi = new PrintInfo();
pi.Centering = Centering.Horizontal;
pi.Orientation = PrintOrientation.Landscape;
pi.ShowRowHeader = PrintHeader.Hide;
pi.ShowColumnHeader = PrintHeader.Hide;
pi.ShowPrintDialog = true;
pi.BestFitRows = true;
pi.Preview = true;
pi.ShowGrid = true;
pi.ShowBorder = true;
pi.Margin = new PrintMargin(20, 20, 0, 0, 0, 0);
fpSpread1.ActiveSheet.PrintInfo = pi;
// 打印报表
fpSpread1.PrintSheet(fpSpread1.ActiveSheetIndex);
} |
|