[C#] Generating a PDF - InfoPath Dev
in

InfoPath Dev

[C#] Generating a PDF

Last post 04-07-2006 06:27 AM by lmussier. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 03-30-2006 03:13 AM

    [C#] Generating a PDF

    Hi,

    How can i generate a pdf from my InfoPath form ??
    No matter if i need a pricee or a free lib.
    I just want to generate a pdff file from my form
    Any ample code is welcom ;)
  • 03-30-2006 07:28 AM In reply to

    The easiest way would be to just print the form to a PDF image writer.

    To make things nicer you could first define a default print view where you make the form ready for print.

    hth
  • 03-30-2006 11:58 PM In reply to

    Nice idea but the thing i want to do is

    1- Generate the pdf from the form
    2- Email the pdf

    In fact i don't need to preview the pdf.
    I think a lib should exist to transform the info path xml data into a pdf file, no ?

    PS: I'm not working on a server, i don't think i can use FO to covert my form to a PDF (tell me if i'm wrong)
  • 04-04-2006 01:31 AM In reply to

    quote:
    Originally posted by AndersR

    The easiest way would be to just print the form to a PDF image writer.

    To make things nicer you could first define a default print view where you make the form ready for print.

    hth



    I'm quite new to info path, how you do that ?
    any link/example to a generation of a pdf from a form is welcom ;o)
  • 04-04-2006 10:41 PM In reply to

    Hi guys,

    Imussier, I am wondering whether you have solve the issue. Cause I'm doing the same thing here.

    I don't want the manually print to PDF by selecting File>Print>select PDF printer

    I want to automatically convert infopath form to PDF by pressing a button.

    Anyone has any idea or have experience with this one before ?
    Any help will be very much appreciated
    Thank you very much ...

    Regards,
    Tjendarta Ho
  • 04-06-2006 11:19 PM In reply to

    HI,

    What I have done for make this is create a xsl-fo files for transform my xml like I want! This idea is good if you want to generate a different view of what you have in Infopath!

    After I have make a webservice that make the transform with FOP after save it in a location and show the result (pdf) to the user! this last step is (I think) possible to make directly in infopath and without saving!

    Other things is wait on office 2007 that make this possible!

    ++

    thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 04-07-2006 06:27 AM In reply to

    quote:
    Originally posted by Virgul

    HI,

    What I have done for make this is create a xsl-fo files for transform my xml like I want! This idea is good if you want to generate a different view of what you have in Infopath!

    After I have make a webservice that make the transform with FOP after save it in a location and show the result (pdf) to the user! this last step is (I think) possible to make directly in infopath and without saving!

    Other things is wait on office 2007 that make this possible!

    ++

    thierry



    In fact i've installed a pdf writer on thre computer and create a printpreview view in InfoPath, from this preview i've selected pdf printer has the view printer (check view properties)

    And it's done, when you clic on the print bitton it print the file in a pdf...

    You can bypass the print preview with a little bit of C# code to simulate the print order (print button in fact) but you'll get a pop up invinting you to input the destination pdf file (waht i don't want)

    Hop it helps...


    PS: The XSL:FO methode sounds good but a bit, humm, hard, enormous !
    By the way could you post or email me your xsl:fo way to do the job, i'm curious o see that ;o)
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.