Using Stimulsoft Reports.Net

Stimulsoft Reports.NET discussion
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Using Stimulsoft Reports.Net

Post by socotek »

Good morning,
we use Stimulsoft Report Versione 2010. We have some questione how to manage aspects of report.
  • a. We know there is the possibility to edit style in Component Style. How can we use Chart Style? Is there the possibility to edit a style sheet and export to other report?
  • b. We used to edit a page of a report a Databand and a Pie Chart to view data in a report; is it possible put the marker of the color used in Pie Chart in a column of Databand?
  • c. In Chart, especially in Pie Chart, it is possible to specify a set of color chart have to use? Is possible set label word wrap?
  • d. What is the purpose of using the subreport?
Thank you in advance,
Luca
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Stimulsoft Reports.Net

Post by HighAley »

Hello, Luca.
socotek wrote:a. We know there is the possibility to edit style in Component Style. How can we use Chart Style? Is there the possibility to edit a style sheet and export to other report?
Yes, it's possible to save all styles to fila and open this file in other report template.
StyleDesignerOpenSave.png
StyleDesignerOpenSave.png (14.99 KiB) Viewed 5391 times
socotek wrote:b. We used to edit a page of a report a Databand and a Pie Chart to view data in a report; is it possible put the marker of the color used in Pie Chart in a column of Databand?
It's possible to set colors of the chart and get these colors to show on Data Band. Please, look at the attached report template. To show color name you could use next expression:\

Code: Select all

{StyleMyStyle.StyleColors[Line-1]}
To change background of text component you could use next code in Before Print event of this component.

Code: Select all

(sender as StiText).Brush = new StiSolidBrush(StyleMyStyle.StyleColors[Line-1])
Report.mrt
(7.97 KiB) Downloaded 413 times
socotek wrote:c. In Chart, especially in Pie Chart, it is possible to specify a set of color chart have to use? Is possible set label word wrap?
It's possible to set colors in Style Designer.
StyleDesignerChartColors.png
StyleDesignerChartColors.png (30.08 KiB) Viewed 5391 times
What labels do you need to word wrap? We have made an improvement in one of our latest releases.
socotek wrote:d. What is the purpose of using the subreport?
It's better to use Panels and put components on it. When this is inconvenient you could use sub-report to collocate components on separate page.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Using Stimulsoft Reports.Net

Post by socotek »

Hello Aleksey,
thank you very much for your answers.

We use Stimulsoft Report Versione 2010, but we installed and tested the trial Stimulsoft.Net Version 2014.
We have other question, i write below.
  • a. In chart, in trial Stimulsoft.Net Version 2014, it possible to set a style for chart. Using the trial version, while I changed from a style of Stimulsoft to a style saved in a component style, we noticed that other properties (as colour brush of chart) changed without keep the value we set in the previous style. So, the style is used only to control the color of chart and the conditions, and not other properties? Or is there a mode to save a style of a chart that contains all properties?

  • b. We see the use of Style Chart in trial version, where it is possible set a color array. Is it possible to define and set this color array from the program that call Stimulsoft Report? Or is there a possibility to give the same color to the same category (for example, seafood in blu, beverages in yellow, ...)?
  • c. In a chart we used Group Band to show a list with two group to view information. Now the second group is order by alfabetical order on the field we group the information. We would like to view information grouped by a field, but order by another field. Is it possible?
  • d. (last c.) As you see in the picture below, sometimes we need to word wrap legend and series label both. It is possible? Is there a properties to set? (I can't attach the image, so I attach the pdf image)
    LabelWordWrap.pdf
    (26.16 KiB) Downloaded 640 times
  • e. If we need to create a report from a different report (so we merge different report together), we lose the page numbering.
    Is it another way to numbering pages?
  • f. In the report Test_TextBox.mrt attached, we have the problem to see on screen the text we put inside a text box in a particular mode, and when we print on paper we see the text in another position. It happend also in other report, where a text in a text box on screen resulted in a single row, while printed on paper we see the text on two rows.
    Test_TextBox.mrt
    (265.56 KiB) Downloaded 338 times
Thank you very much in advance,
Luca
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Stimulsoft Reports.Net

Post by HighAley »

Hello, Luca.
socotek wrote:a. In chart, in trial Stimulsoft.Net Version 2014, it possible to set a style for chart. Using the trial version, while I changed from a style of Stimulsoft to a style saved in a component style, we noticed that other properties (as colour brush of chart) changed without keep the value we set in the previous style. So, the style is used only to control the color of chart and the conditions, and not other properties? Or is there a mode to save a style of a chart that contains all properties?
The Chart is very complicated component and have many properties. We don't understand what you mention. Please, send us any sample with screen-shots where we could see the issue.
socotek wrote:b. We see the use of Style Chart in trial version, where it is possible set a color array. Is it possible to define and set this color array from the program that call Stimulsoft Report? Or is there a possibility to give the same color to the same category (for example, seafood in blu, beverages in yellow, ...)?
You could use Conditions of the Series for this.
ChartSeriesConditions.png
ChartSeriesConditions.png (6.67 KiB) Viewed 5342 times
socotek wrote:c. In a chart we used Group Band to show a list with two group to view information. Now the second group is order by alfabetical order on the field we group the information. We would like to view information grouped by a field, but order by another field. Is it possible?
There is no Group Band in the chart. Could you describe your question more detailed with images?
socotek wrote:d. (last c.) As you see in the picture below, sometimes we need to word wrap legend and series label both. It is possible? Is there a properties to set? (I can't attach the image, so I attach the pdf image)
You could set the Columns property of the Legend. Unfortunately, there is no Word Wrap property.
socotek wrote:e. If we need to create a report from a different report (so we merge different report together), we lose the page numbering.
Is it another way to numbering pages?
As we understand you join rendered pages. There is no easy way to change page numbers there. It's better to use report template with several pages.
socotek wrote:f. In the report Test_TextBox.mrt attached, we have the problem to see on screen the text we put inside a text box in a particular mode, and when we print on paper we see the text in another position. It happend also in other report, where a text in a text box on screen resulted in a single row, while printed on paper we see the text on two rows.
Sorry, but we couldn't reproduce this issue. Could you describe it more detailed?

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Using Stimulsoft Reports.Net

Post by socotek »

Hello Aleksay,
thank you for your answer.
  • a. As you see in the picture Before.pdf, we have a Pie Chart with Style property set on Style03. After choose the Style property, we modified some other properties (in the picture you can see the Brush property set to Empty).
    When we changed again the Style property to MyStyle, we lose the set of other properties. In the picture After.pdf you see the Brush property set to Solid with color White, the Border of the Series Label, and so on.
    So, we have this problem because we need to change Style property for different client, but we want keep other properties unchanged.
    Before.pdf
    (228.51 KiB) Downloaded 562 times
    After.pdf
    (188.37 KiB) Downloaded 366 times
  • c. I wrote wrong, I meant report and not chart, I'm sorry. In a report we used Group Band (see the TestGroupBand.mrt), in the pdf file TestGroupBand.pdf there is the data we see now. But we would like to order data by the field Posizione.PesoDeposito of the second Group Band named GroupBand2. Is it possible?
    We would like to have a report as shown in TestGroupBand_Wanted.pdf (I point the list with number).
    TestGroupBand.mrt
    (223.78 KiB) Downloaded 326 times
    TestGroupBand.pdf
    (90.69 KiB) Downloaded 393 times
    TestGroupBand_Wanted.pdf
    (92.76 KiB) Downloaded 362 times
  • d. We use StiReport.SubReports.Add(StiReport). I show you a sample code to explain:

    Code: Select all

    Dim reportAss = New StiReport
    Dim report1 = New StiReport
    Dim report2 = New StiReport
    ...
    'Create report1 with data
    'Create report2 with data
    ...
    reportAss.SubReports.Add(report1)
    reportAss.SubReports.Add(report2)
    
    In the reportAss, we lose the page numbering.
  • f. In attachment you will find TestTextBox.mrt, an example that reproduce an error. The TestTextBox_ReportOnPC.pdf image is the report that we obtain using Stimulsoft on PC, while TestTextBox_ReportPrintedOnPaper.pdf is the photo of what I printed. You see in this last pic the text is cut.
    TestTextBox.mrt
    (259.31 KiB) Downloaded 352 times
    TestTextBox_ReportOnPC.pdf
    (64.63 KiB) Downloaded 413 times
    TestTextBox_ReportPrintedOnPaper.pdf
    (688.54 KiB) Downloaded 322 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Stimulsoft Reports.Net

Post by HighAley »

Hello, Luca.

a. Please, try to set the Allow Apply Style property to False. Then the style will not override local settings.

c. Please, use Summary Sort Direction, Summary expression and Summary Type properties of the Group Header.

d. f. You are using very old version of our product. This numbering problem was solved as far as some problems with text rendering. Please, upgrade to the latest release.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Using Stimulsoft Reports.Net

Post by socotek »

Hi,
is it possibile to set a number of lines in a series label on a pie chart (in order to programmatically set wrap from code/design)?

For example:
Line 1: Pronti Contro Termine
Line 2: 10,5%

Many thanks

Monica
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Stimulsoft Reports.Net

Post by HighAley »

Hello.

Sorry, we need some additional time to prepare an answer for you.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Using Stimulsoft Reports.Net

Post by socotek »

Hello,
you have news about it?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Stimulsoft Reports.Net

Post by HighAley »

Hello.

Unfortunately, it's impossible to wrap line in specified place.

Thank you.
Post Reply