导航:首页 > 文件教程 > delphi生成pdf文件

delphi生成pdf文件

发布时间:2023-03-22 17:15:36

① 如何用delphi 把Excel,word文件中生成到PDF文件

Workbooks(Name).ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.path & "薯皮\aa.PDF"卖手稿中孝

② delphi 如何将WORD转换为PDF

使用vba来指定保存的文件格式为pdf,当然前提必须已扮盯安装MS Office的PDF输出插件(默认应该有)
procere TForm1.btn1Click(Sender: TObject);
var
wdo,wdoc,wdocs : OleVariant;
begin
wdo := CreateOleObject('Word.Application');
wdocs := wdo.Documents;

wdoc := wdocs.Open('d:\test.docx');

wdoc.ExportAsFixedFormat(OutputFileName:=
'd:\test.pdf', ExportFormat:=17);
//查word的宏帮助
{ OpenAfterExport:='True', OptimizeFor:='圆缺简wdExportOptimizeForPrint', Range:=
'wdExportAllDocument', From:=1, To:=1, Item:='wdExportDocumentContent',
IncludeDocProps:='True', KeepIRM:='True', CreateBookmarks:=
'wdExportCreateNoBookmarks', DocStructureTags:='True', BitmapMissingFonts:=
'True', UseISO19005_1:='False'橘裤); }

end;

③ delphi 怎样导出pdf,要求:1.pdf文件能自动分页2.中文汉字不为乱码

SmartPrinterV4 直接打印 这个虚拟打印机就打印成pdf格式的了

④ delphi系统将信息读取到EXCEL后怎么能导出为PDF呢

  1. 可以直接导出为PDF,而不是先到EXCEL

  2. 如果导出到EXCEL以后,可以安装一个PDF打印机,直接从EXCEL打印成PDF即可

⑤ 生成PDF使用Delphi中的Windows服务的基本知识问题,怎么解决

生槐并成PDF使用源明搭雹拿Delphi中的Windows服务的基本知识

I'm writing a windows service using Delphi XE3. The service is going to read from a database, generate a pdf using quickreport 5.05.1. I plan to generate the pdf using TQRPDFDocumentFilter.

Everything works fine in a normal VCL application, but when I implement it in a windows service the service hangs (without any exceptions) when I do a QuickRep.Prepare.

I have read that it is possible to use QuickReport in a windows service, but I do not know how. Any suggestions?

Where is the code:

procere foo
var
pdfFilter: TQRPDFDocumentFilter;
begin
with TForm2.Create(Self) do
begin
ClientDataSet1.Open;
QuickRep1.Prepare;
pdfFilter := TQRPDFDocumentFilter.Create(GetApplicationFolder() + 'test.pdf');
try
QuickRep1.QRPrinter.ExportToFilter(pdfFilter);
finally
pdfFilter.Free;
ClientDataSet1.Close;
end;
end;
end;

Edit: I have also tried turning off "show progress" on the QuickReport as suggested in another thread. Writing some code to catch an exception reveals that it indeed throws one. The message is "There is no default printer currently selected". So this leads me to believe that the local system user that the service is running under does not have any printers installed and that this is the problem.

I have resolved a similar problem (printing to a shared network printer from a Java server running as a Windows service) with these steps:

⑥ 怎么用delphi 把Excel,Word文件中生成到PDF文件

好像缓喊衡不可以,找个专门扰做的pdf生成软件吧渗伍,我一般都是装一个虚拟打印机,然后直接打印成pdf文件,嘿嘿。

⑦ delphi2010如何生成PDF文件,求详解!

不知道具体的用途,你可以安装个虚拟的PDF打印机,直接打印出PDF文件啊,如PDF工厂

⑧ 如何用delphi 把Excel,Word文件中生成到PDF文件

建议你是用acrobat 或者abbyy 这个 两款软件进行转换编辑

Adobe公司推出的PDF格式是一种全新的电子文档格式。借助 Acrobat ,您几乎可以用便携式文档格

adobe-acrobat-x

式 (Portable Document Format,简称 PDF) 出版所有的文档。 PDF 格式的文档能如实保留原来的面貌和内态掘容,以及字体和图像。这类文档可通过电子邮件发送,也可将它们存储在WWW 、企业内部网、文件系统或CD-ROM上,来供其他用户在 Microsoft Windows , Mac OS和 LINUX 等平台上进行查看。由于该格式使用Adobe公司开发的PostScript页面描述语言,使得页面中的文字和图形的质量得到质的飞跃。无论您是使用PDF文档进行网上阅读,还是打印、印刷出版,Adobe Acrobat都能给你最好效果。

ABBYY 是一家俄罗斯软件公司,在文档识别,数据捕获和语言技术的开发中居皮拍世界领先地位。其获奖产品 FineReader OCR 软件可以把静态燃闭羡纸文件和 PDF 文件转换成可管理的电子数据,可以大大节省您的时间和精力。

阅读全文

与delphi生成pdf文件相关的资料

热点内容
小米5splus微信运动 浏览:813
热血战斗小说去哪个网站 浏览:281
小孩学哪个编程语言好 浏览:279
网站参数筛选怎么做 浏览:627
幼儿编程有什么问题 浏览:693
工商银行app人工服务在哪里 浏览:19
怎么让文件中全体内容往下移 浏览:783
魔兽争霸126版本转换器 浏览:984
word2003精简版下载 浏览:703
微博跳转appstore 浏览:537
打开文件时权限a代表什么 浏览:155
昆仑通态导出数据文件名 浏览:338
手机迁移数据为什么需要重新登录 浏览:958
录入数据库的图片如何更改 浏览:132
怎样获取邮箱帐号和密码 浏览:809
怎么通过js实现回到指定页面 浏览:140
如何用网络签字 浏览:552
三星电视拆机教程 浏览:19
创维怎么连接网络 浏览:868
2007版word绘图在哪里 浏览:311

友情链接