Solved

Render InfoPath in PDF

Posted on 2009-04-02
4
1,051 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint Installation Error - WDSRV.MSI file not found 5 51
Sharepoint nonfunctional - Emergency 6 38
SharePoint Form with repeating section 2 20
Regarding Disk IO 3 42
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…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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