对于vb 6的Crystal报告9,在导出报告期间,我只想限制用户在导出组合中只看到pdf,有没有办法做到这一点?

时间:2013-04-19 12:15:56

标签: vb6 crystal-reports

对于针对Visual Basic 6的Crystal报表9,您可以将报表导出为各种文件格式,例如pdf,excel,word,rpt等。如果我只想限制用户只看到导出所选组合中的pdf,是否存在一种方法吗?

1 个答案:

答案 0 :(得分:-1)

Sleep 1000
Dim crapp As CRAXDRT.Application
Dim oRpt As CRAXDRT.Report


Set crapp = New CRAXDRT.Application
Set oRpt = crapp.OpenReport("E:\Income Tax\Reports\RptTotalCustomers.rpt", 1)
oRpt.ExportOptions.DestinationType = crEDTDiskFile
oRpt.ExportOptions.DiskFileName = "E:\Income Tax\dummy.xls"

oRpt.ExportOptions.FormatType = crEFTExcel80

oRpt.ExportOptions.ExcelUseConstantColumnWidth = True
oRpt.Export False