Mounir February 2016

InfoPath Form URL TO PDF using C#

I want to convert inforpath to pdf.

I have the url and have an access to the hosted place like :

http://hostserver/PWA/_layouts/15/FormServer.aspx?XmlLocation=/PWA/InfoPath%20Title.xml

Is there a way to read the InfoPath form as xml and converting it to pdf ?

Answers


Daniele HoŇ°ek February 2016

You have to download and parse content of the URL to an object via: XElement, HtmlAgilityPack then create PDF file e.g. using TextWriter.


Vinay Pandey February 2016

Depends on how and where you want to deal with it, ABCPdf,ItextSharp along with many other third party tools available let you handle the conversion on server side.

You can use jspdf or equivalent to do it on client side, analyse what you need and choose your tool.

Post Status

Asked in February 2016
Viewed 2,273 times
Voted 13
Answered 2 times

Search




Leave an answer