Q1) How to print CR directly to printer -
refer
THIS link.
Dim cryRpt As ReportDocument = New ReportDocument()
cryRpt.Load(Server.MapPath("~/extraConrols/CrystalReport1.rpt"))
CrystalReportViewer1.RefreshReport()
CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf
cryRpt.PrintToPrinter(1, False, 0, 0)
You could also use -
<form id="form1" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
</form>
with code behind -
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cryRpt As ReportDocument = New ReportDocument()
cryRpt.Load(Server.MapPath("~/extraConrols/CrystalReport1.rpt"))
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.RefreshReport()
CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf
Q2) Combine 2 reports -
Approach 1 : Use sub-report :- If you have a common parameter between both the report, then best approach to this is to use one report as a sub-report and second will treat as a main report. For this in main report,
Insert -> Sub-report, map both reports and execute will give the desire result.
See
how to combine 2 crystal reports to 1 crystal reports for more details.
Q3)How to export report - Make use of the PDF function to export.