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

热点内容
如何qq离线文件 浏览:304
编程沈阳哪里招生 浏览:329
threeredapples 浏览:291
html网站练习素材 浏览:216
win10默认不启动文件共享 浏览:455
大数据架构如何部署 浏览:95
cnc编程工厂怎么干活 浏览:705
ps无法导出png格式的文件格式 浏览:268
苹果air2插卡价格 浏览:626
qq头像男生图片大全 浏览:164
文件控制电脑 浏览:220
pdf文件页数怎么读 浏览:489
iphone的文稿与数据在哪个文件夹 浏览:918
把文件夹设置密码 浏览:895
网络电视遥控器怎么对接 浏览:169
海尔网站属于什么类型网站 浏览:565
数据结构要看哪个版本的 浏览:557
三菱编程如何写转换模式 浏览:375
网络刻录机怎么连接电脑显示屏 浏览:540
网络男主播怎么做 浏览:104

友情链接