This is a migrated thread and some comments may be shown as answers.

Exporting Scheduler to PDF

6 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Arvind
Top achievements
Rank 1
Arvind asked on 09 Jul 2012, 04:06 PM
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

6 Answers, 1 is accepted

Sort by
0
Arvind
Top achievements
Rank 1
answered on 11 Jul 2012, 10:25 AM
Hi,

Help on the above issue please.

Thanks
0
Peter
Telerik team
answered on 11 Jul 2012, 11:57 AM
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.
0
Arvind
Top achievements
Rank 1
answered on 11 Jul 2012, 01:50 PM

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
0
Peter
Telerik team
answered on 11 Jul 2012, 02:30 PM
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.
0
Arvind
Top achievements
Rank 1
answered on 11 Jul 2012, 02:54 PM
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
0
Peter
Telerik team
answered on 12 Jul 2012, 01:51 PM
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.
Tags
Scheduler
Asked by
Arvind
Top achievements
Rank 1
Answers by
Arvind
Top achievements
Rank 1
Peter
Telerik team
Share this question
or