Solved

Render InfoPath in PDF

Posted on 2009-04-02
4
1,044 Views
Last Modified: 2012-05-06
Hi there,
I have a requirement where I need to render infopath form to PDF on publishing. My tool should render Infopath form which I have published to PDF and apply waterkmark, footeer, resize etc. Does anybody have idea about any Tool or any approach which i need to look for. Thanks!
0
Comment
Question by:ved_mishra
4 Comments
 
LVL 2

Accepted Solution

by:
Ellis_F earned 168 total points
ID: 24058354
0
 
LVL 9

Assisted Solution

by:neilrichards
neilrichards earned 166 total points
ID: 24058372
If you are willing to code then there's a post halfway down this page that will help you out.  You can use the infopath api to write a custom event handler that will do the conversion for you.  

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/9f43f377-dfd6-4c6e-a361-315bf30f3c91/


U can get help regrading how to Add the Form Control to the Visual Studio 2005 Project  in this link http://msdn2.microsoft.com/en-us/library/ms406041.aspx
Install 2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS  u can get addin from this link
http://www.microsoft.com/downloads/details.aspx?familyid=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en
After adding the FormControl to the windows application  and installing Microsoft Add-in.
This code helps to conver the infopath(*.xml) file to the PDF.
using Microsoft.Office.InfoPath;
using Microsoft.Office.InfoPath.FormControl
// file refers the source file path
// finalFilename is the destination file path
  FormControl1.Open(file);
  MessageBox.Show("Confirm of exporting Document" + finalFileName);
 FormControl1.XmlForm.CurrentView.Export(finalFileName + ".pdf", Microsoft.Office.InfoPath.ExportFormat.Pdf)
instead of PDF there are two option available
XPS Microsoft.Office.InfoPath.ExportFormat.Xps
MHT Microsoft.Office.InfoPath.ExportFormat.Xps
0
 
LVL 6

Assisted Solution

by:ramuar1981
ramuar1981 earned 166 total points
ID: 24372827
Hi mishra,

Have you tried our search: http://www.google.com/cse?cx=003654972516704994317%3A4j0mji2l1rq&ie=UTF-8&q=PDF ?? It lists the following useful tool:

http://www.infopathdev.com/blogs/ernesto/archive/2009/05/01/save-as-pdf-in-infopath-and-office-2007.aspx

Please search and try to find content before just asking. I see you have 46 posts in two weeks. This forum has been up for over 5 years. Most of your questions have been asked before. Please search and self-help before you ask the forum. Our goal is a forum where the signal to noise ratio is high! :)

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now