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