Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Render InfoPath in PDF

Posted on 2009-04-02
4
Medium Priority
?
1,055 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 672 total points
ID: 24058354
0
 
LVL 9

Assisted Solution

by:neilrichards
neilrichards earned 664 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 664 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 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