Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrnt.Click




        Dim genCMR As New GenerateCMR
        Me.pReport.Controls.Add(genCMR.Generate(Request.QueryString("GUID").ToString))
        Me.hlReport.NavigateUrl = "~/Secured/CMRTemplates/cmr.aspx?GUID=" + Request.QueryString("GUID").ToString
        Me.lReport.Visible = False
        mpext.Show()


        ClientScript.RegisterStartupScript([GetType](), "print", "window.print();", True)
    End Sub

Can you elaborate on what you are trying and what exactly isn't working?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.