急,求救,在线等

letone 2007-06-24 07:57:17
关于水晶报表导出pdf的问题

dim rpt As New ReportDocument
Dim DiskOps As New CrystalDecisions.Shared.DiskFileDestinationOptions
Dim exportOpts As New ExportOptions
DiskOps.DiskFileName = filepath & "\palletlabel.pdf"
exportOpts = rpt.ExportOptions。。。。。。。。。这里出错.Invalid report file path.
exportOpts.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
rpt.ExportOptions.DestinationOptions = DiskOps
rpt.Export()
rpt.Close()
Return True


?rpt.ExportOptions
<error: an exception of type: {CrystalDecisions.CrystalReports.Engine.LoadSaveReportException} occurred>
但是已经添加了CrystalDecisions.CrystalReports.Engine
...全文
120 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
letone 2007-06-24
  • 打赏
  • 举报
回复
加了load后出现登录失败,解决好后在结贴!,
谢谢Bote_China() !
bote_china 2007-06-24
  • 打赏
  • 举报
回复
少了一句rpt.Load(reportname)

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧