locked
how to convert info path forms into PDFs RRS feed

  • Question

  • How to convert info path forms into PDFs files after end user submit the data into forms and that forms are store into  document library.can any one help me .I don't want to use 3 party tolls  

    Wednesday, May 8, 2013 9:20 AM

Answers

  • Something like this is only going to be a developer task, moreso if you don't want to use third party tools.

    I've seen this code from this thread, that may be some help for you: -

    private void btnConvert_Click(object sender, EventArgs e)
    {
    try
    {
    formControl1.XmlForm.CurrentView.Export(s_filename Out,
    ExportFormat.Pdf);
    }
    catch (Exception ex)
    {
    MessageBox.Show("Error: " + ex);
    }
    }
    private void btnOpen_Click(object sender, EventArgs e)
    {
    try
    {
    formControl1.Open(s_filenameIn);
    formControl1.XmlForm.CurrentView.ForceUpdate();
    }
    catch (Exception ex)
    {
    MessageBox.Show("Error: " + ex);
    }
    }
    I don't know how you'd be able to integrate this into SharePoint, possibly via an OnSubmit via the InfoPath API, but I'm no developer, so I can't be sure.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Wednesday, May 8, 2013 10:00 AM
    Answerer