grid++report 怎么在报表中加入自定义水印
1个回答
2016-09-14
展开全部
1、可在代码中设置:
Private Sub RunBySize(IsPreview As Boolean)
'求得用报表使用的计量单位表示的纸张尺寸值
Dim Width As Double
Dim Length As Double
Width = CDbl(txtWidth.Text)
Length = CDbl(txtLength.Text)
If (Report.Unit = grmuInch) Then
Width = Width / 2.54
Length = Length / 2.54
End If
Report.Printer.PrinterName = "aaaa"
'256代表自定义纸张
'Report.Printer.PaperSize = 256
'Report.Printer.PaperWidth = Width
'Report.Printer.PaperLength = Length
'If ckLandScape.Value Then
' Report.Printer.PaperOrientation = grpoLandscape
'Else
' Report.Printer.PaperOrientation = grpoPortrait
'End If
Report.PrintAsDesignPaper = True
Report.PrintToStretch = False
Report.DesignPaperSize = 256
Report.DesignPaperWidth = Width
Report.DesignPaperLength = Length
If ckLandScape.Value Then
Report.DesignPaperOrientation = grpoLandscape
Else
Report.DesignPaperOrientation = grpoPortrait
End If
If IsPreview Then
Report.PrintPreview True
Else
Report.[Print] False
End If
End Sub
Private Sub RunBySize(IsPreview As Boolean)
'求得用报表使用的计量单位表示的纸张尺寸值
Dim Width As Double
Dim Length As Double
Width = CDbl(txtWidth.Text)
Length = CDbl(txtLength.Text)
If (Report.Unit = grmuInch) Then
Width = Width / 2.54
Length = Length / 2.54
End If
Report.Printer.PrinterName = "aaaa"
'256代表自定义纸张
'Report.Printer.PaperSize = 256
'Report.Printer.PaperWidth = Width
'Report.Printer.PaperLength = Length
'If ckLandScape.Value Then
' Report.Printer.PaperOrientation = grpoLandscape
'Else
' Report.Printer.PaperOrientation = grpoPortrait
'End If
Report.PrintAsDesignPaper = True
Report.PrintToStretch = False
Report.DesignPaperSize = 256
Report.DesignPaperWidth = Width
Report.DesignPaperLength = Length
If ckLandScape.Value Then
Report.DesignPaperOrientation = grpoLandscape
Else
Report.DesignPaperOrientation = grpoPortrait
End If
If IsPreview Then
Report.PrintPreview True
Else
Report.[Print] False
End If
End Sub
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询