How to print crystal report's sub report
i had create one report with subreport and section with drilldown. the
subreport is display on user click event i.e on demand subreport. 

There is no issue until this point, but if user like to print the subreport i have no idea how to do it as currently i print report base on session that store during report loading.

So my question  is
How i know where is the page that currently user is? And how can i print that 'sub report'?
Thanks in advance.

Here is my code:


     Private Sub ShowPrintOrExportDialog(ByVal iSelectValue As Integer)

        Response.Clear()
        Response.Buffer = False
        Response.ClearContent()
        Response.ClearHeaders()

        Dim oDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        oDoc = Session("doc")
        If IsNothing(oDoc) Then
            Exit Sub
        End If

        oDoc.ExportToHttpResponse(iSelectValue, Response, False, Session("docname"))

    End Sub
How to print crystal report's sub report
===

i had create one report with subreport and section with drilldown. the
subreport is display on user click event i.e on demand subreport. 

There is no issue until this point, but if user like to print the subreport i have no idea how to do it as currently i print report base on session that store during report loading.

So my question  is
How i know where is the page that currently user is? And how can i print that 'sub report'?
Thanks in advance.

Here is my code:


     Private Sub ShowPrintOrExportDialog(ByVal iSelectValue As Integer)

        Response.Clear()
        Response.Buffer = False
        Response.ClearContent()
        Response.ClearHeaders()

        Dim oDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        oDoc = Session("doc")
        If IsNothing(oDoc) Then
            Exit Sub
        End If

        oDoc.ExportToHttpResponse(iSelectValue, Response, False, Session("docname"))

    End Sub