
Yoni Dagan
Top achievements
Rank 1
Yoni Dagan
asked on 18 Jun 2008, 09:59 AM
Hi!
How i can export pdf file on client side(report not visible).Simulation of export button click
How i can export pdf file on client side(report not visible).Simulation of export button click
7 Answers, 1 is accepted
0
Hi Sergey,
If you refer to having the ReportViewer invisible and export that way - it is not possible, since you would not be able to obtain reference to its client object and invoke Export("pdf"). You have two options:
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
If you refer to having the ReportViewer invisible and export that way - it is not possible, since you would not be able to obtain reference to its client object and invoke Export("pdf"). You have two options:
- have it hidden with style="display:none;"
- save the report programmatically like explained here: http://www.telerik.com/support/kb/article/b454K-mha-b454T-cge-b454c-cge.aspx
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 18 Jun 2008, 12:59 PM
I have it hidden with style="display:none;", but I not undestand save run on client side and the SaveReport(new MyReport(), @"C:\MyReport.pdf"); path on client machine
0
Hello Sergey,
Here is a snippet that should show you what I mean:
<script type="text/javascript">
function ExportPDF()
{
<%=ReportViewer1.ClientID %>.Export("pdf");
}
</script>
<asp:Button ID="Button1" runat="server" Text="Show Report" OnClientClick="ExportPDF(); return false;" />
<div>
<telerik:ReportViewer ID="ReportViewer1" runat="server" style="display:none;" ShowZoomSelect="true" ZoomMode="PageWidth"
Skin="Office2007"></telerik:ReportViewer>
</div>
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Here is a snippet that should show you what I mean:
<script type="text/javascript">
function ExportPDF()
{
<%=ReportViewer1.ClientID %>.Export("pdf");
}
</script>
<asp:Button ID="Button1" runat="server" Text="Show Report" OnClientClick="ExportPDF(); return false;" />
<div>
<telerik:ReportViewer ID="ReportViewer1" runat="server" style="display:none;" ShowZoomSelect="true" ZoomMode="PageWidth"
Skin="Office2007"></telerik:ReportViewer>
</div>
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 18 Jun 2008, 02:13 PM
Thank you Steve and I have more question: send me live url with help client side
Thanks ahead Sergey
Thanks ahead Sergey
0
Hi Sergey,
Currently there is no client-side section in our help, but it would be available for the Q2 release scheduled for July 15th.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Currently there is no client-side section in our help, but it would be available for the Q2 release scheduled for July 15th.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 19 Jun 2008, 04:33 AM
Thank you, Steve!
0
Hello Sergey,
Currently you can use the quickwatch to see what methods and properties does the reportviewer exposes (see screenshot). Simply add debugger; to your javascript and you can find all client-side relevant info.
Regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Currently you can use the quickwatch to see what methods and properties does the reportviewer exposes (see screenshot). Simply add debugger; to your javascript and you can find all client-side relevant info.
Regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center