How to convert an infopath form to pdf

A

akjal

hi,
I am searching a solution many places for my problem. But all efforts were
in vain.
I have some infopath forms filled with data (.xml). I want to convert it to
pdf
through .net code(c#). That is , my pplication should take an infopath form
and convert it to .pdf on a button click.

I know there is an add-in from microsoft to do this manually. But I want it
do through code in my application.

Please help me... It's very urgent...
 
T

TD

I'm not sure how to do it through a Microsoft Add-in but you might want to
try www.amyuni.com Their PDF creator comes up as a printer and you basically
use it as such ( in code ).
 
A

akjal

Hi TD

Thanks for reply. I got a free print driver from novapdf and installed . Now
I can print to pdf any document using this driver. But now my problem is ,
When I print it from my c# code, it is ony printed as xml elements.that is,
not showing the text boxes and all in infopath.

can u suggest any office document from visual studio code which contains not
only text but some pictures, tables etc. If so my problem will be solved..

thabks in advance
 
T

TD

I've never used the novapdf but I don't think it should be too much
different. What we do with the Amyuni driver is create the printer and get a
device context from that and draw to it just like we would be drawing to the
screen. I know it's a bit different in C# but I would think in theory you
should be able to do about the same thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top