关于ActiveReports成生成PDF流时,在IE中流览时提示 109 出错

dapha 2003-10-23 03:02:30
关于ActiveReports成生成PDF流时,在IE中流览时提示 109 出错

现在问题是在另外两台电脑上安装组后,可以正常使用,而在我自己本机无法使用。
但把这个流输出为PDF,又可以正常打开。请问有谁遇到过此类问题啊。请帮帮忙喽。在此谢过~~~~~
VB中生成文件流的函数代码如下
Public Function MakeEray_Reports(ByVal reports As ActiveReport, ByVal sort As String) As Variant
'参数:reports,报表名称
'sort 以做扩展使用
'Dim rdfExport As ActiveReportsRTFExport.ARExportRTF '声明RDF对象
Dim pdfExport As ActiveReportsPDFExport.ARExportPDF'声明PDF对象
Dim vByteArray As Variant
Set pdfExport = New ActiveReportsPDFExport.ARExportPDF '建立PDF对象
pdfExport.AcrobatVersion = 2 'pdf4.0版
pdfExport.SemiDelimitedNeverEmbedFonts = ""
'pdfExport.FileName=""'要生成的PDF的Path+Filename
'pdfExport.Export BranchRpt.Pages生成pdf文件
'BranchRpt.Pages.Save FileName =rdfExport.export'生成RDF文件
Call pdfExport.ExportStream(reports.Pages, MakeEray_Reports) '生成PDF流
Set pdfExport = Nothing
Exit Function
pdfexporterr: '出错了。
MakeEray_Reports = ""
Set pdfExport = Nothing
End Function

ASP代码
Dim erayreports
Set erayreports =Server.CreateObject("eray_tess.RptPart")
'这是用VB写的组件
Response.clear
ByteArray = erayreports.Make_Reports("pdf")
Response.ContentType = "application/PDF"
Response.BinaryWrite ByteArray
Set erayreports=Nothing
...全文
71 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dapha 2003-10-25
  • 打赏
  • 举报
回复
樓上的,問題我的機子是開發環境竟然不能運行,這有點說不過去吧?
不過現在我自己已經解決了。多謝兩位。下周回公司把代碼貼出,供大家以後參考。
yllaji 2003-10-24
  • 打赏
  • 举报
回复
现在问题是在另外两台电脑上安装组后,可以正常使用,而在我自己本机无法使用。


看这句话 看来 是你的计算机问题了?

看看 你的机器 和别人的机器有什么不同,多装了什么 少装了什么……
xxrl 2003-10-24
  • 打赏
  • 举报
回复
没有写过相关代码,去问版主吧
ActiveReports 7 2013 V1 4/4 共四个压缩文件,请全部下载后解压 Award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure with an end-user Report Designer, Visual Studio integration, and more. Multi-platform Reporting Component with Pure Power The award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure provides Microsoft .NET developers with familiar Visual Studio integrated designers and components, as well as an extensive API. Create reports ranging in functionality from form-based reports such as invoices and insurance documents, to transaction reports such as sales and accounting, to analytical reports such as sales and budget analysis and portfolio analysis. * ActiveReports joined the ComponentOne product line on July 1, 2012, when ComponentOne became a division of GrapeCity. See what's new in the ActiveReports 7 release! Why Choose ActiveReports 7? Multiple Report Types to Fit Your Reporting Needs Fixed Page Layout gives developers a new way of creating reports where layout is the primary focus. Great for creating invoices, prospectus reports, forms, or other highly structured reports. Continuous Page Layout makes it easy to create reports using tables, crosstabs, charts, and other data regions with flexible layouts. Section Reports follow the tradition of previous ActiveReports versions and are similar to Access reports. Using code-behind or scripts, you can respond to the various events that occur while the report generates to create extremely customized reports that are hard to produce with other products. Fast .NET Reporting Engine Fast .NET Reporting Engine ActiveReports 7 is optimized for speed. Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to pass through quickly from processing to rendering. Flexible .NET API The extensive ActiveReports 7 API allows Visual Basic and C# developers to completely control the report processing engine to fit their needs. Events and properties control: Data retrieval Data transformation Layout Rendering In addition, the API gives the developer complete control over the rendered document to allow selective printing or export, post-render drawing or stamping on pages, n-page, and booklet printing. For added control, ActiveReports 7 provides unmanaged access to the print job, allowing tray selection and duplex printer management as the document is rendered to the printer. Data Visualization and Layout Data Visualization and Layout Whether you need a simple listing or groups with keep-together control, master-detail reports, sub-reports, horizontal and vertical multi-column reports, address labels and badges, or richly formatted letters with mail merge support, ActiveReports is the solution. Simple and lightweight report controls allow you to easily create dazzling reports. With a selection including textbox, checkbox, line, shape, cross-section box, image, formatted text with mail merge, barcode (2D and 3D), chart, and other data visualization controls, they support a wide range of business reports. You can create reports of any size with nearly endless layout options. Rich Data Binding Rich Data Binding .NET data sources allow you to connect to any of the standard databases, plus .NET in-memory objects and collections. In addition, unbound data mode opens up the report to data from anywhere, in any form. If your application can access it, so can the report engine. Visual Studio Integrated Design Time Visual Studio Integrated Design Time The ActiveReports 7 report designer integrates with the Microsoft Visual Studio IDE allowing C# and Visual Basic developers to create reports and compile them into their Windows Forms, ASP.NET, and Silverlight applications. ActiveReports Professional Edition users can also use the royalty-free end-user report designer control to give similar report design functionality to end users within the business application. Cross-platform Support Cross-platform Support ActiveReports 7 offers versatile viewers to extend the reach of your reports to every platform. Built-in report viewers include Windows Forms, Adobe Flash, Microsoft Silverlight, and a rich HTML viewer, all with built-in search functions, hyperlink interaction, a table of contents, and multi-page zoom view support. ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over the exported documents and their properties. The ActiveReports reporting engine supports cloud computing on Microsoft's Windows Azure platform under partial trust as well as full trust. Support for Migration from Other Reporting Tools Support for Migration from Other Reporting Tools ActiveReports 7 helps you preserve your past investments with easy report conversion from Microsoft Access and SAP Crystal Reports, thus greatly reducing the effort involved in recreating old reports when you migrate. No need to start from scratch! Global Options and Localization Support Global Options and Localization Support Localize the ActiveReports user interface to meet the needs of all of your international users. (There are fully localized Chinese and Japanese versions for those specific markets.) Localization also extends to the reports themselves: the reporting engine can use locale-specific text and formatting without the need to create multiple reports. Deployment Deployment ActiveReports 7 uses XCOPY deployment, making installation of your applications incredibly simple. There are no special merge modules to include, no licensing servers to install alongside your application, and no onerous activation procedures to go through.

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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