是否可以使用DSOFramer dll类保存pdf文件 [英] Is it Possible to Save a pdf File Using DSOFramer dll class
问题描述
你好,
我在使用 axdsoframer 时遇到问题.
我正在使用pdf阅读器(即Foxit Reader),可以在其中创建pdf文件,并且我想保存该pdf文件,但是在保存pdf文件时,它不会以pdf格式保存.
我已经使用了这行代码,适用于Excel,Word等,但不适用于pdf.
请注意,iam使用dll axdsoframer .
Hello,
I am facing problem in using axdsoframer.
i am using a pdf reader (i.e Foxit Reader) in which i can create a pdf file and i want save this pdf file ,but while saving the pdf file it is not saved in the pdf format.
I have used this line of code which is working for Excel, word etc.but not for pdf.
note that iam using a dll axdsoframer.
AxDSOFramer.AxFramerControl doc = (AxDSOFramer.AxFramerControl)chform.ActiveControl;
save_filepath = remove_prj + "\\" + chform.Text + ".xlsx";
doc.Save(save_filepath, true, Type.Missing, Type.Missing);
这对于excel来说很好用.
this is working fine for excel.
AxDSOFramer.AxFramerControl doc = (AxDSOFramer.AxFramerControl)chform.ActiveControl;
save_filepath = doc.DocumentFullName;
save_filepath = remove_prj + "\\" + chform.Text +".pdf";
doc.Save(save_filepath, true, Type.Missing, Type.Missing);
这一个不起作用.
它显示错误..不支持这样的接口
任何人都可以帮助我解决这个问题
在此先感谢.
Pradeep
This one is not working .
It shows the error .. No such interface supported
Any one can help me to solve this problem
Thanks in Advance.
Pradeep
推荐答案
它不起作用.除非Word和Excel开始将其文档保存为PDF格式,否则它们将无法正常工作.
您还需要其他一些以PDF格式编写的组件,例如CutePDF.基本上,这是Word和Excel可以打印以创建PDF文档的打印机.
It won''t work. Unless Word and Excel started saving their documents in PDF format, which they didn''t, this isn''t going to work.
You have to have some other component that writes in PDF Format, like CutePDF. This is basically a printer that Word and Excel can print to to create the PDF document.
这篇关于是否可以使用DSOFramer dll类保存pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!