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

How i can export pdf file on client side

7 Answers 434 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
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

7 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 18 Jun 2008, 12:54 PM
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:
  • 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
Hope these help.
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
Steve
Telerik team
answered on 18 Jun 2008, 01:50 PM
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
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
0
Steve
Telerik team
answered on 18 Jun 2008, 02:53 PM
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
0
Yoni Dagan
Top achievements
Rank 1
answered on 19 Jun 2008, 04:33 AM
Thank you, Steve!
0
Steve
Telerik team
answered on 19 Jun 2008, 08:25 AM
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
Tags
General Discussions
Asked by
Yoni Dagan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Yoni Dagan
Top achievements
Rank 1
Share this question
or