Solved

Render InfoPath in PDF

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sharepoint workflow on list 6 36
How to configure smtp service for Sharepoint server? 4 48
SharePoint sub-site searching and results. 8 32
Backup of Sharepoint Online 3 76
I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 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

16 Experts available now in Live!

Get 1:1 Help Now