Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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);

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);


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
Posted
Updated 29-Jun-11 22:44pm
v5
Comments
Christian Graus 24-Jun-11 0:35am    
If you're using a third party library, you should look for a forum provided by the people who wrote it, so that everyone you speak to, actually uses the library in question. If you paid for it, then you should also be able to ask them for support.

1 solution

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.
 
Share this answer
 
Comments
pk.pradeep 30-Jun-11 10:03am    
Thanks Dave ..
But I have to create a pdf file for that i use Foxit Reader in which i can create a pdf file but the problem is when i am going to save it.
I think using Cutepdf i can't create a pdf file. if you have any idea regarding this pleas help me. By the way thanks for your answer.....
Dave Kreskowiak 30-Jun-11 18:26pm    
CutePdf PRINTS a document to a PDF file. In Word, you select the CutePdf Printer, hit Print in your app, then CutePdf will ask for the destination filename.
pk.pradeep 1-Jul-11 1:25am    
from where should i get the cutepdf dll. Is this dll support .net framework
Dave Kreskowiak 1-Jul-11 6:52am    
Are you kdding me?? All you have to do is type "CutePDF" into any search engine!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900