Solved

Render InfoPath in PDF

Posted on 2009-04-02
4
1,052 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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