or
Hello!
Is there a way I can tell the report engine NOT to generate pages? I like to merge a report image to email content (not as an attachment). So far I tried this:
1. JPEG has only One page
2. TIFF has separate pages but email clients are not able to page
3. MHTHL is great but I could not find a way to merge this format to ASP MailMessage (only html)
Any idea how I can reach my goal?
Thanks
public MasterReport()
{
InitializeComponent();
AddSubreports(111);
}
private void AddSubreports(int headerId)
{
ReportDataSource c = new ReportDataSource(headerId);
dss = c.GetSources();
foreach (ParameterValuesReportDataSource ds in dss)
{
IndividualParameterReport subreport = new IndividualParameterReport(ds);
SubReport subReport = new SubReport();
subReport.Size = new SizeU(Telerik.Reporting.Drawing.Unit.Cm(8), Telerik.Reporting.Drawing.Unit.Cm(1));
subReport.Dock = DockStyle.Top;
subReport.ReportSource = subreport;
detail.Items.Insert(0, subReport);
}
}
public MasterReport()
{InitializeComponent();
DataSource = null;
NeedDataSource += new EventHandler(MasterReport_NeedDataSource);
}void MasterReport_NeedDataSource(object sender, EventArgs e)
{headerId = Int32.Parse(ReportParameters["ParameterHeaderId"].Value.ToString());
AddSubreports(headerId);
}<
telerik:RadWindow
x:Class
=
"SilverFinancials.WindowsReport.CheckReport"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikReport
=
"clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
mc:Ignorable
=
"d"
Closed
=
"Check_Print_Closed"
Header
=
"Check Print"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
Width
=
"970"
Height
=
"600"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerikReport:ReportViewer
Name
=
"checkReport"
Width
=
"970"
Height
=
"600"
>
</
telerikReport:ReportViewer
>
</
Grid
>
</
telerik:RadWindow
>
using
SilverFinancials.Windows.Accounts_Payable.Posting;
using
Telerik.Windows.Controls;
namespace
SilverFinancials.WindowsReport
{
public
partial
class
CheckReport : RadWindow
{
public
CheckReport(
)
{
InitializeComponent();
}
}
}