Hello Mark,
If you're using XtraReports v2007 vol 3, you may try to do the following:
1. Set the ReportViewer.ClientInstanceName to "MyReportViewer"
2. Execute this code on the client:
MyReportViewer.SaveToDisk("PDF");
For example, the following aspx demonstrates two buttons (standard and DevExpess ASPxButton), which perform your task:
<body>
<form id="form1" runat="server">
<div>
<dxe:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton" AutoPostBack="False" EnableClientSideAPI="True">
<ClientSideEvents Click="function(s, e) {
MyReportViewer.SaveToDisk("PDF");
}" />
</dxe:ASPxButton>
<asp:Button ID="Button1" runat="server" OnClientClick='MyReportViewer.SaveToDisk("PDF"); return false;'
Text="Button" /><br />
<br />
<dxxr:ReportViewer ID="ReportViewer1" runat="server" Report="<%# new WebApplication3.XtraReport1() %>"
ReportName="WebApplication3.XtraReport1" ClientInstanceName="MyReportViewer">
</dxxr:ReportViewer>
</div>
</form>
</body>
Does this help you?
@.
R&D, .NET Team.
PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.