Hi,

Using VB.Net on a Web Project I create a instance of an ASPX page (called CrystalWebViewer.ASPX), set some values/properties of the page (e.g. crDoc) and then want to open/browse/redirect this instance (e..g Show the page in IE). Please have a look at the code :

Dim objReport As New ReportGenerator()

objReport.ReportID = txtReportID.Text
objReport.Parameters = txtParam.Text
objReport.ShowDialog = False
objReport.Web = True
objReport.RunReport()

'Here's where the trouble starts

Dim objNew As New CrystalWebViewer()
objNew.crDoc = objReport.CrystalReportDoc
objNew.DataBind()

'This line just produces a Empty CrystalWebViewer ASPX Page, not the one that I created as objNew

Response.Redirect("//localhost/IMS Web Reporter/Crystal Web Viewer.aspx")

'End of Code

It is this last line of code that opens the ASPX page but not the instance (objNew) of the ASPX page. I have tried anything.

Can one not do
Response.Redirect(objNew.Page)
or something similar to open the ASPX page from VB.Net ?

I am a good VB (.Net) programmer but do not know ASP at all, please help.

Thanks,
Dirk