New Problem

Stimulsoft Reports.WEB discussion
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


Until recently all my testing was done on the same system. The website was on the same system as the development and the client.

Then I deployed out the rest of engineering and having major problems.

Running a reports...works fine..no problems (with the exception of paging which I posted previously). And that only occurs sometimes.

However anyone who is NOT on the machine the server is on......the dictionaries of a new report don't get loaded....nor when I load an existing report in code the report doesn't get loaded. Below is a snippet of the the code used to load an existing report.


Stimulsoft.Report.StiReport stiReport = new Stimulsoft.Report.StiReport();

stiReport.Load(report.ReportFile); // report.ReportFile is the binary of the report. We store it in our database.

Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyDictionary = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyConnections = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyVariables = true;

try
{
WebReportDesigner.Design(report);
}
catch (Exception ex)
{

}


No error is generated or displayed. The Web designer is loaded, but the report is NOT loaded.

I'm wondering if this is related with the 2032 error I posted earlier. Same symptoms, but there is no 2032 error displayed. The only system difference is that the client is on another system then the server. Both systems are in the same Domain.

Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

New Problem

Post by Jan »

Hello,

Please run following code:

Code: Select all

Stimulsoft.Report.StiReport stiReport = new Stimulsoft.Report.StiReport();

stiReport.Load(report.ReportFile); // report.ReportFile is the binary of the report. We store it in our database.

stiReport.Save(tempFile);<-------------------------

Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyDictionary = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyConnections = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyVariables = true;

try
{
WebReportDesigner.Design(report);
}
catch (Exception ex)
{

}
After running this code check saved report. It equal to report which stored into database.

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello,

We also tested the following code that works without errors:

Code: Select all

StiReport report = new StiReport();
report.Load(appDirectory + "/Reports/" + DropDownList1.Text);

byte[] temp = report.SaveToByteArray();

report = new StiReport();
report.Load(temp);

StiWebDesigner1.Design(report);
Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


This problem does NOT happen all the time. Just sometimes. From the same machine with the same user. And once it starts to happen, it'll keep happening for quite a while.

Yes your test works on my system....GREAT...but it doesn't mean anything. My code works fine also...ABOUT 50% OF THE TIME. The rest of the time it doesn't work. There is a intermittent problem...looks like something is not getting cleared.

This is the same behavior as the 2032 error...but without the error being displayed.

I've done some research on the 2032 error....there are a few known issues with this error and Flash. But resolving this is in the Flash code...Not sure how to proceed from here.

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello,

We will prepare for you a special version of WebDesigner, which will display the error code and any data received from the server. This may help to understand the problem more in detail.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


Sorry for not responding earlier...but been very busy here.

Yes I would love a special version to see what error is being generated.

Could you please send one.


I LOVE the product....just have to get this issue resolved.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »

Jan wrote:Hello,

Please run following code:

Code: Select all

Stimulsoft.Report.StiReport stiReport = new Stimulsoft.Report.StiReport();

stiReport.Load(report.ReportFile); // report.ReportFile is the binary of the report. We store it in our database.

stiReport.Save(tempFile);<-------------------------

Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyDictionary = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyConnections = false;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyVariables = true;

try
{
WebReportDesigner.Design(report);
}
catch (Exception ex)
{

}
After running this code check saved report. It equal to report which stored into database.

Thank you.
I ran this test.

Load the report from the database...Save it to a temp file...Then load it from the temp file.

ERROR 2032.

I then use the Open command and select that temp file that I saved to....Works fine.

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello,

Please download the prerelease build from April 19.
In the error message dialog, click on the error message (as shown on the image), and a text that is returned by the server will be copied to the clipboard. Usually, this is the HTML page. Please send us this text.

Thank you.
Attachments
397.WebDesignerSpecialVersion.png
397.WebDesignerSpecialVersion.png (8.35 KiB) Viewed 6526 times
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


The latest version I see from the down-load page is 4-12-2010.

Nothing for 4-19-2010.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

It is already available.

Thank you.
Post Reply