Requires a Change in Data Retrival Process

Stimulsoft Reports.NET discussion
Post Reply
dhaval2006
Posts: 4
Joined: Tue Aug 19, 2008 5:43 am
Location: Mumbai

Requires a Change in Data Retrival Process

Post by dhaval2006 »

Hello Friend,

I am using Stimulsoft, for my project. I need some changes to be done, in order to make the fastest data retrival & more user friendly output. In other words, i mean when i am retriving 100 records from the database, then it should not display the data in the listing control, after all retrival is completed. It should start display the records, once it is retrive & keep updating the list, for all other records.

See, my problem is that my client requires to create a server component, which connect the database & get all required data, in a thread & at a same time, pass the data to your tool Stimulsoft to display it in his report, from other thread. Even, the concept should in windows based application & web based application. Thus, i request to guide me, your level of functions/code/logic, where i can develop just server component & make use of all your Stimulsoft features.

I hope, you are clear with my requirement. If in case, there is any query, then please let me know.

Waiting for your reply on it

Regards
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Requires a Change in Data Retrival Process

Post by Edward »

Hello.

In Stimulsoft Reports.Net rendering process can start only after all data have been retrieved from its source. There is no option to start rendering when not all data had been fetched by the report engine.

For the server-side components when rendering and data access processes must use server computing resources you can generate report into mdc or mdz file format and after rendering was completed, just send it to the client for displaying.

The code on this is very simple:

report.Render(false);
report.SaveDocument("myRenderedReport.mdc");
or
report.SavePackedDocument("myPackedRenderedReport.mdz");

Thank you.
dhaval2006
Posts: 4
Joined: Tue Aug 19, 2008 5:43 am
Location: Mumbai

Requires a Change in Data Retrival Process

Post by dhaval2006 »

After our discussion on chat, i will be waiting for your update, on .NET 2008 Code, which includes a data retrival from db, storing it in .mdc / .mdz file & displaying it in your Stimulsoft reporting tool.

Thank You.
dhaval2006
Posts: 4
Joined: Tue Aug 19, 2008 5:43 am
Location: Mumbai

Requires a Change in Data Retrival Process

Post by dhaval2006 »

Currently, i am getting the
error "Cross-thread operation not valid: Control 'StiProgressForm' accessed from a thread other than the thread it was created on." on line "report.Render();"

Or

error "Cross-thread operation not valid: Control 'tvBookmarks' accessed from a thread other than the thread it was created on." on line "report.Render(false);"

when i am adding multiple thread concept

Pls guide me inn solving this issue
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Requires a Change in Data Retrival Process

Post by Edward »

Hello, Dhaval.

Thank you for the bug report.

We need time for fixing this issue. We will keep you informed.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Requires a Change in Data Retrival Process

Post by Edward »

Hello, Dhaval.

There is no possibility to assign a report or any other property in Stimulsoft Reports.Net from one thread while a PreviewControl or any other instance are not in the same thread.

You can create as much threads as you need but please make all necessary actions in the same thread in which those controls have been created.

Thank you.
Post Reply