Bug changing unit in report designer
Bug changing unit in report designer
Hello,
here are the steps that show the problem:
- Open report designer (it shows new and empty report)
- Add an overlay band
- Add a sub report component to the overlay band
- In the upcoming dialog click “OK” (By this you link the new page ‘Sub_Report_1’ to the sub report component)
- Check the width of the page ‘Sub_Report_1’. It corresponds to the width of the sub report component.
- Now change the unit from e.g. centimeters to millimeters in the footer of the designer
- Check the width of the page ‘Sub_Report_1’. It is ten times to big in my example
It looks like the width of the page 'Sub_Report_1' is changed twice.
I have a similar problem in changing the unit via code in a report. How can I work around this?
Thanks for any help.
here are the steps that show the problem:
- Open report designer (it shows new and empty report)
- Add an overlay band
- Add a sub report component to the overlay band
- In the upcoming dialog click “OK” (By this you link the new page ‘Sub_Report_1’ to the sub report component)
- Check the width of the page ‘Sub_Report_1’. It corresponds to the width of the sub report component.
- Now change the unit from e.g. centimeters to millimeters in the footer of the designer
- Check the width of the page ‘Sub_Report_1’. It is ten times to big in my example
It looks like the width of the page 'Sub_Report_1' is changed twice.
I have a similar problem in changing the unit via code in a report. How can I work around this?
Thanks for any help.
Bug changing unit in report designer
Hi
I tried to reproduce it, but I can not see the problem you described. A scale did actually changed, but sizes recalculated absolutely correctly.
And Subreports must always have the same units as the main subreport.
When you load subreports from file as external subreports you should set all units the same way for all reports which are parts of one report:
Please show your code which caused these problems.
Thank you.
I tried to reproduce it, but I can not see the problem you described. A scale did actually changed, but sizes recalculated absolutely correctly.
And Subreports must always have the same units as the main subreport.
When you load subreports from file as external subreports you should set all units the same way for all reports which are parts of one report:
Code: Select all
StiReport mainReport = new StiReport();
mainReport.Load("myReport.mrt")
subreport.ReportUnit = report1.ReportUnit;
Thank you.
Bug changing unit in report designer
Hi,
happened to me several times and it's easy to reproduce.
1) Open blank Designer
2) Add an empty sub report over the whole page
3) Change units in Page1 from centimeters to millimeters or vice versa - Now page width of the Subreport is broken.
Version: 2009.3.512.0
Hope it will help you.
Best Regards
happened to me several times and it's easy to reproduce.
1) Open blank Designer
2) Add an empty sub report over the whole page
3) Change units in Page1 from centimeters to millimeters or vice versa - Now page width of the Subreport is broken.
Version: 2009.3.512.0
Hope it will help you.
Best Regards
Bug changing unit in report designer
Hi
I also tried this but it seems that this is a bug of refreshing of the SubReport, after swithching between Page and SubReport all units displayed correctly.
Thank you.
I also tried this but it seems that this is a bug of refreshing of the SubReport, after swithching between Page and SubReport all units displayed correctly.
Thank you.
Bug changing unit in report designer
No, the conversion isn't correct. When saving the report to file and opening in an editor, the page width of the subreport has a value of 1920 millimeters - after changing from centimeters to millimeters. Maybe its a localization problem? I'm using German (Austria) region settings.
Regards.
Regards.
Code: Select all
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0,190,30.5
SubReport1
e0c9f6c35ebe402f9d9d6e1230ffb09d
c9e22a00d2fe4e53a8e6288940857f8f
10,10,10,10
Page1
297
210
Arial,100
[50:0:0:0]
None;Black;2;Solid;False;4;Black
Transparent
e0c9f6c35ebe402f9d9d6e1230ffb09d
10,10,10,10
subReport_1
297
1920
Arial,100
[50:0:0:0]
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
Bericht
10/21/2009 11:39:16 AM
10/21/2009 11:38:55 AM
5d5c8929dad04e1a8c1b4ba13d6b4953
Bericht
Millimeters
2009.3.512
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Bericht : Stimulsoft.Report.StiReport
{
public Bericht()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
CSharp
Bug changing unit in report designer
Hi
Thank you very much for the sample and your comments, I have reproduced the problem and we will let you know when it is fixed.
Thank you.
Thank you very much for the sample and your comments, I have reproduced the problem and we will let you know when it is fixed.
Thank you.
Bug changing unit in report designer
Hello xss,
I thank you very much for your help.
Have a great time.
I thank you very much for your help.
Have a great time.
Bug changing unit in report designer
Hi
The problem does exist. We will let you know when it will be fixed.
Thank you.
The problem does exist. We will let you know when it will be fixed.
Thank you.
Bug changing unit in report designer
Hi
The problem is fixed. The patch will be available in the next prerelease build.
Thank you for your cooperation.
The problem is fixed. The patch will be available in the next prerelease build.
Thank you for your cooperation.