Reloading a Stimulsoft report from a string is missing the original table data - stimulsoft

I saved a Stimulsoft report (containing some variables and a table) to a string using this method:
string s = report1.savetostring();
When I reload this report in other Stimulsoft report, all data in the second report comes except the table data:
report2.loadfromstring(s);
What is wrong here?

What you'll want to do is use the SaveDocumentToString method instead. Be sure to render the report first.
report1.Render();
string s = report1.SaveDocumentToString();
Then to load the report (with data)
report2.LoadDocumentFromString(s);

Related

Power Query Table Headers Removing Text Before Delimiter

I am using Power Query (Get Data) in Excel to import data from a worksheet in another file. The source data is an OLAP pull and one of the member names (column header) is "Location.2 Area". It worked fine when I first set it up but now when I refresh the query is removing all text prior to the "." so it's just pulling as "2 Area" which is causing errors as future steps reference the column name.
Any ideas on how to fix this issue? Maybe it's a setting I'm not aware of?
Thanks!!

How to show image in stimulsoft

I store image path in database and use BeforePrintEvent event to show image in stimulsoft report and specify following code in the event:
Image2.Image = Image.FromFile(my Procedure Name.path column name);
My problem:
There are many text box and an image in my report.
my store procedure return many row and every row information show correctly in every report but first row path column in query show in image for every report.(image control in all reports show one image while it show differnt image)
my query return different path for every row.
How can I resolve it?
Which Stimulsoft product do you use?
It's necessary to see your report to help you.
You don't need to use BeforePrint event. You could just set the Data Column property of the Image.

PivotTable reports that are set to refresh when the item in a report filter changes

I want to show an excel with a parameter in it's query. But xlviewer show this error : We're sorry. We can't open the workbook in the browser because it uses these unsupported features:
• PivotTable reports that are set to refresh when the item in a report filter changes, or external data ranges (also called query tables) that use parameters
Do you want to open the file in Excel instead?
My query in excel is like this :
I need to load data into workbook by query string parameter.
http://office.microsoft.com/en-sg/sharepoint-server-help/differences-between-using-a-workbook-in-the-browser-and-in-excel-HA104009811.aspx
View this link, I have also kenna have the same problem trying to figure it out

Add and remove columns from a Tablix in rdlc report

I want to create a report with dynamic number of columns.
I have used the solutions of these two following links to load and modify my rdlc report file.
http://dobrzanski.net/2009/02/06/how-to-dynamically-add-new-columns-to-report-created-with-reporting-services/
Why does C# XmlDocument.LoadXml(string) fail when an XML header is included?
but the problem is that when i use the Save method of xmlDocument to save the report anything happens.
what is my mistake???

Create output file only when the query returns data in JasperReports

I am exporting a JasperReport to an Excel spreadsheet. If the query returns an empty result set, an empty excel sheet is getting created in the specified location. I want an Excel spreadsheet to be generated only when the query fetches the data. Is there any possibility to get this?

Resources