Exporting Scheduler to PDF

7 posts, 0 answers
  1. Arvind
    Arvind avatar
    12 posts
    Member since:
    Jun 2012

    Posted 09 Jul 2012 Link to this post

    Hi,

    I have followed example provided in below link to export, this exports to a PDF fine, but this opens a dialog asking for open or save the PDF. is it possible to open the PDF directly without showing the open dialog.


    http://demos.telerik.com/aspnet-ajax/scheduler/examples/pdfexport/defaultcs.aspx

    Thanks
  2. Arvind
    Arvind avatar
    12 posts
    Member since:
    Jun 2012

    Posted 11 Jul 2012 Link to this post

    Hi,

    Help on the above issue please.

    Thanks
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Jul 2012 Link to this post

    Hello,

    Please, try this setting:

    <ExportSettings FileName="SchedulerExport" OpenInNewWindow="false">

    Regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  4. Arvind
    Arvind avatar
    12 posts
    Member since:
    Jun 2012

    Posted 11 Jul 2012 Link to this post

    Hi,

    Making the OpenInNewWindow="false", will open the PDF in the same IE window hence navigating away from my page. What I need is to open the PDF in a new window but without showing the File download dialog box asking for save or open the PDF file.


    Thanks
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Jul 2012 Link to this post

    Hi Arvind,

    You can set Target="_blank" for RadButton and point its NavigateUrl property to another page which calls the exportToPdf() method in Page_PreRender:
    protected void Page_PreRender(object sender, EventArgs e)
           {
               
               RadScheduler1.ExportToPdf();
           }


    Regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Arvind
    Arvind avatar
    12 posts
    Member since:
    Jun 2012

    Posted 11 Jul 2012 Link to this post

    Hi Peter,

    Can you please pont me to a sample for the previous reply.

    Also, opening in new window i meant is to open the generated PDF file directly as a PDF document(not in IE browser) without showing the File download dialog box to open it .Sorry for my mistake. Is this possible.

    Thanks
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Jul 2012 Link to this post

    Hi Arvind,

    Attached is a sample of the solution suggested in the previous post.

    As for the other requirement, I am not sure if or how it could be achieved.

    Kind regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top