Hi,
Can someone please advise me how I can achieve the following:
I have a report whose page orientation is landscape. I want to print it from my in-browser (IE8) Silverlight 4 application. I want the print dialog button to appear so the user can choose a printer or change defaults, but I want the report to print in landscape by default (unless the user specifically changed this in the print dialog) and not print according to the printer's defaults.
If I set UseNativePrinting to false then nothing happens when I press the Report Viewer's print button. If I create my own button with the following code executing on the click event :
nothing happens.
This should be easy. Please help.
Thanks.
Can someone please advise me how I can achieve the following:
I have a report whose page orientation is landscape. I want to print it from my in-browser (IE8) Silverlight 4 application. I want the print dialog button to appear so the user can choose a printer or change defaults, but I want the report to print in landscape by default (unless the user specifically changed this in the print dialog) and not print according to the printer's defaults.
If I set UseNativePrinting to false then nothing happens when I press the Report Viewer's print button. If I create my own button with the following code executing on the click event :
var reportViewerModel = reportViewer.DataContext
as
ReportViewerModel;
if
(reportViewerModel.State.Equals(
"ViewerPageState"
))
{
reportViewerModel.PrintReportCommand.Execute(
null
);
}
This should be easy. Please help.
Thanks.