Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Editor > Export PDF to server ONLY

Not answered Export PDF to server ONLY

Feed from this thread
  • Michael avatar

    Posted on Feb 5, 2012 (permalink)

    Hello, 

    I am using this method to save a local PDF from a radeditor when a form is submitted:  http://blogs.telerik.com/blogs/posts/08-12-08/how-to-export-grid-to-pdf-file-and-show-the-result-using-the-window.aspx 

    But this sends the PDF to the client as well. 

    How can I save a PDF to the server without sending a copy to the client? 



    Reply

  • Rumen Rumen admin's avatar

    Posted on Feb 6, 2012 (permalink)

    Hi,

    You should set the OpenInNewWindow property to false, e.g.

    <telerik:radeditor runat="server" ID="RadEditor1">
        <ExportSettings OpenInNewWindow="false"></ExportSettings>
    </telerik:radeditor>

    All the best,
    Rumen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Michael avatar

    Posted on Feb 6, 2012 (permalink)

    This makes the PDF open in the client window rather than send it to them as a download. I would rather they never see the PDF. 

    What I would like is: 

    • User submits a form (Form HTML is inserted into radeditor)   (this is working)
    • PDF is saved to the server (this is working) 
    • Client is redirected to a thank you page (this is not working, the client is redirected to the PDF file instead, or offered a download of the pdf) 

    How can I save a PDF to the server without showing it to the client? 

    Reply

  • Rumen Rumen admin's avatar

    Posted on Feb 8, 2012 (permalink)

    Hi,

    You can find here an example which demonstrates how to export the editor's content in a PDF file on the server using the OnExportContentevent and without loading the PDF file in the browser. The demo is based on the following blog post: How To: Export grid to PDF file and show the result using the window.


    All the best,
    Rumen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Editor > Export PDF to server ONLY
Related resources for "Export PDF to server ONLY"

ASP.NET Editor Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]