导航:首页 > 文件教程 > 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文件相关的资料

热点内容
核桃编程如何退钱 浏览:17
如何查看预约app 浏览:774
数控哪个编程软件速度最快 浏览:135
qq表情白眼是哪个 浏览:965
shell循环文件名 浏览:602
照片3d建模源代码 浏览:434
西安iPhone6升级内存 浏览:84
小学生的编程的课是学什么的 浏览:114
就业下载什么app 浏览:191
个人配置文件重定向到D盘 浏览:22
js屏幕宽度 浏览:312
sql查找某列重复数据库 浏览:48
智行火车票用微信支付 浏览:262
网络定价过程哪些内容发生变化 浏览:200
dubbo服务提供者的配置文件 浏览:182
win8系统如何压缩文件 浏览:875
网站怎么上传代码 浏览:4
java日志的好处 浏览:103
武汉奇米网络怎么样 浏览:689
笔记本如何恢复原来数据 浏览:76

友情链接