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 广告
博思AIPPT是基于ai制作PPT的智能在线工具,它提供了4种AI制作PPT的方式,包括AI生成大纲、AI直接生成PPT、文本生成PPT、AI提炼word文档生成PPT,一站式集成多种AI生成PPT的方式,可满足办公用户的不同需求和使用场景...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询