从access+vb6或只是sql 2005生成pdf的方法?
设置: 多台计算机使用 adp 文件访问 sql 2005 数据库。 大多数没有 pdf 蒸馏器。 创建一个访问表单(普通表单,而不是水晶表单),需要将其另存为 pdf。
我能想到的唯一方法是从访问 SQL Server 发送网页请求。 就像是: “http://sqlserver/generatepdf.php?id=123"
我正在尝试避免网页“中间人”。 有没有办法在 T-SQL 中生成 pdf? 大家还有什么其他的想法。 我不是在寻找代码,只是在寻找方法思想。
谢谢
The setup:
Multiple computers using an adp file to access a sql 2005 database. Most don't have a pdf distiller. An access form (plain form, not crystal) is created that needs to be saved as a pdf.
The only way I can think of is send a request from access to the sql server for a web page. Something like:
"http://sqlserver/generatepdf.php?id=123"
I'm trying to avoid the web page 'middle man'. Is there a way to generate the pdf in T-SQL? Anyone have any other ideas. I'm not looking for code, just methdology ideas.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将表单另存为报告,然后使用 Access MVP Stephen Lebans 的免费 A2000ReportToPDF 实用程序将其转换为 pdf 文件。
http://www.lebans.com/reporttopdf.htm
如果他们有 Access 2007,他们可以下载并安装免费的 Microsoft Office 2007 插件,将文档另存为 PDF 或 XPS。
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en
Save the form as a report, then use Access MVP Stephen Lebans free A2000ReportToPDF utility to convert it to a pdf file.
http://www.lebans.com/reporttopdf.htm
If they have Access 2007 they can download and install the free Microsoft Office 2007 Add-in to save documents as PDF or XPS.
http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en
Microsoft 的 ReportViewer 客户端可以本机生成 pdf。
它可以在网页和 Windows Forms/WPF 应用程序中运行。 您也可以通过编程方式触发导出。 唯一的缺点是您基本上需要将表格重做为报告。
Microsoft's ReportViewer client can generate pdfs natively.
It works inside of web pages and windows forms/wpf apps. You can programmatically trigger the export as well. The only downside is that you'll need to basically redo your form as a report.
我必须承认我没有明白:您想将 Access 表单及其数据导出到 PDF 文件中吗? 您的表格基本上是图形,而不是文本,也不是报告。 您的意思是希望将此表单作为(例如).png 文件包含在 PDF 文件中,还是希望它成为一个完整的 PDF 文件,继承原始表单中的对象并允许进行文本搜索等操作在?
I must admit that I did not get it: you want to export an Access form and its data into a PDF file? Your form is basically graphics, not text, nor report. Do you mean that you want this form to be included as (for example) a .png file inside a PDF file or do you want it to be a full PDF file inheriting objects from the original form and allowing things such as text search and so on?