I have designed an infopath form and published on to my Sharepoint Site. My first question is if I save the customized infopath form on my computer, is it possible to open it without MSOffice installed on the system? Secondly, If an customized infopath form in sent through an email, is it possible for me to save it in .doc format.
Infopath forms are just .xml files; so you can open it, but probably will need Infopath desktop help OR using Forms Server at Sharepoint site
Again, you'll receive a XML file; you can parse it and transform in any format you want
You can design a view so that it prints directly to a word document. The each view is an XSLT file that is used to transform the xml form data into a particular format. The default view that you get allows infopath to visually display it. You can develop you own XSLT file to transform the data into any format that you wish including a WordML format. In the Infopath 2003 SDK there is a wizard that allows you to convert the infopath View XSLT files to MS Word XML files. The following links should give you some direction on how.
Design a view that is optimized for printing
InfoPath 2003 Software Development Kit (SDK)
Convert an InfoPath 2007 form into a Word 2007 document using XSLT and C#
Having said that I have not tried to save save the data in a Word (Filename.doc) format. I have however used the data on the form to create a PDF file and attach both the pdf file and the xml form data file and email it. and that worked well for but it requires a fully trusted infopath form and code-behind do it.
Related
I am new to the PDF generation but have a project to do. In my project the user should be able to create PDF documents. I have searched a lot a found sites/tutorials on creating PDF documents using itextsharp. But they have shown examples of creating simple PDF documents i.e. hello world.
What I want is blank editor(for that am using ckeditor) and user write data into that blank editor and when user clicks on save button file should get saved in PDf format. How can I do so?
This can help you as PDFSharp provides more function for PDF
PDF samples
This could get tricky if you want to preserve all the formatting that was entered into CKEditor.
From my experience the two best PDF generation libraries are iTextSharp and syncfusion. Of the two I feel syncfusion can be easier to work with.
Basically what you'll want to do is parse your HTML and generate a similar PDF structure. Both iText and syncfusion can go straight from HTML to PDF, but if your html has an odd layout you might have to form up the PDF by hand (Using PdpPTables, Paragraph objects ect).
I am first time facing to create pdf files. I came across iTextSharp, but not able to find how to convert Listview to pdf tables. Creating custom tables, take lots of time, can any one tell me how can I export my listview ( I have set of 5-6 Listview with complex structure) to PDF, additionally, I want to put images also.
Can this be done with Crystal Report, I am using Visual web developer 2008 express edition.
Thanks.
i'm searching a method to merge some data from an air application to a template made with word (.doc).
I've search on the web for exemple, look at the open office API, but did'nt find anything.
1- do you think it's possible from air to make a document (pdf as possible) from a existing template in .doc ?
If not, i read that livecycle can do pdf from template (template in pdf, with xsd to do the relation beetween data and template) but do know a simple way to convert existing template in .doc to template in pdf?
Every clues will be welcome to help us.
Thanks !
It's possible to make a pdf document with AlivePDF but I don't think it's currently possible to open a .doc file, maybe a .docx since its basically a xml in a zip file.
I don't think a word document as a template would be a good choice, I would recommend using an image.
I have a webpage with some data in a table and I would like to offer my users the option to download it as a PDF File, how can I do that in ASP.Net?
Take a look at the iTextSharp library.
wkhtmltopdf works great and uses the webkit rendering engine (Safari, Chrome) instead of a cooked up html/css parser.
The benefit is that you simply give it your url and it returns a pdf. You would just need to make a printer friendly version of the page to send to it.
You can use a report generator like sql report or crystal report to generate the pdf file.
You can use third party pdf generate tool , and use it to generate a pdf in memory, and sent it to client use Response.Write.
You can also use the MS ReportViewer control and render your PDF from code if you don't want the actual viewer on the page.
If you are using asp.net mvc and want to convert result from mvc views into pdf. You can look at this blog post.
If you are considering to print complex pdf reports from c#. You can check out this blog post.
Disclaimer: I am the author of jsreport.
How do I generate excel reports with rich formatting including charts with a ASP.Net application?
As per http://support.microsoft.com/kb/257757 server-side automation of office is not advisable and also our admin does not allow installation of office on the server
Customer is not ready to spend a lot on 3rd party components
A must requirement is to retain the formatting used by the end user already and also use ONLY excel 2003.
Thanks
Update: We are using ExcelXmlWriter from http://www.carlosag.net/Tools/ExcelXmlWriter/Generator.aspx as it was the most fit.
Two options you might consider:
1) The ReportViewer control. You can design your report, including charts, and have it output to excel. You can allow the report to be shown within the control, or bypass that and export it directly to excel. The version it will be open in depends on what the client has installed.
2) You could create a page that with the lay out you are seeking using a GridView, or plain old HTML tables with your chart images embedded. Modify the response headers so this page downloads as an excel file.
If you need to preserve Excel charts that change when data is changed in the resulting Excel file, I'm not sure if that is possible without the use of third party controls or Office automation. The options above work if you are embedding a chart image created by your asp.net app.
You can use for example this Excel XML library for rich formatting, but unfortunately there are no charts in there.
Without any third party component and Office automation (which is really not recommended on servers) you have basically the two options as JasonS proposed.