Страница 1 из 1

Sometimes MRT Page opening blank when i publish in my server

Добавлено: 02 янв 2008, 03:39
stalinsubash
Hi,

We develop a software in .net(VB.NET),for report we use stimulsoft.
In the code behind we genrate the dataset and pass the dataset to the stimulsoft,and export the report to PDF.
The report will work fine ,when i run in my local machine.

When publish this in my server,some times the report page(mrt),will open blank.And sometimes with data.

Here i given the code for assign the dataset to stimulsoft and calling procedures,

'Import the stimulsoft
Imports Stimulsoft

'Create an Instance
Dim stiReport As New Stimulsoft.Report.StiReport
Dim stiExportPdf As New Stimulsoft.Report.Export.StiPdfExportService

stiReport = New Stimulsoft.Report.StiReport()

' Bind the dataset to report
stiReport.RegData(ds.Tables("XMLData"))
stiReport.RegData(dsPara.Tables("Heading"))

stiReport.Render(False)
sPdfPath = Server.MapPath("../temp/" + SessionId + "CAMS.PDF")
stiExportPdf.ExportPdf(stiReport, sPdfPath)



If any one Know or face this same problem . PLS HELP ME.

Thanks & Regard.

M Stalin

Sometimes MRT Page opening blank when i publish in my server

Добавлено: 02 янв 2008, 06:34
Vital
Please try to make following changes in your code:

Код: Выделить всё

stiReport.RegData("XMLData", ds.Tables("XMLData"))
stiReport.RegData("Heading", dsPara.Tables("Heading"))
Thank you.