Hi!
I need the most simple function:
I have a Textbox in a GropHeaderBand and I want it to grow vertically when text is longer then textbox width. Word wrap is needed.
I set Textbox Can Grow=true and Word Wrap=true and also GroupHeaderBand Can Grow=true.
But textbox height is the same, not growing, while word wrap is OK.
What can I do?
Thank you
Attila
TextBox CanGrow?
-
- Posts: 587
- Joined: Tue Sep 07, 2021 10:11 am
Re: TextBox CanGrow?
Hello,
Please check the attached report with Can Grow and WordWrap properties.
If the issue still persist, please send us a sample report with test data that reproduces the issue.
Thank you.
Please check the attached report with Can Grow and WordWrap properties.
If the issue still persist, please send us a sample report with test data that reproduces the issue.
Thank you.
- Attachments
-
- All Group Footers at End.mrt
- (76.46 KiB) Downloaded 7 times
Re: TextBox CanGrow?
Hi!
I tried your sample - it's ok.
My simplyfied sample is ok in designer prewiev. But in the server it's not.
Moreover, my real report is ok in designer prewiev!
There is something in the code that makes a mess of the report?
Code:
StiOptions.Engine.AllowSetCurrentDirectory = false;
StiFontCollection.AddFontFile("Fonts/arial.ttf", "Arial");
StiBlazorHelper.Initialize(jsRuntime);
Stimulsoft.Report.Export.StiPdfExportSettings exportsettings = new();
exportsettings.AutoPrintMode = Stimulsoft.Report.Export.StiPdfAutoPrintMode.Silent;
StiReport report = new StiReport();
report.Load("wwwroot/invoices/SzamlaA4Ketpld.mrt");
string connstr = DataGeneral.GetConnectionString(adatbazis);
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new StiSqlDatabase("MS SQL", connstr));
report["@SzamlaIds"] = szamlaIds;
report.Dictionary.Variables["KellAtutalaskod"].ValueObject = true;
report.ReportAlias = szamlaszam;
report.ReportName = szamlaszam;
report.Render(true);
StiReportResponse.PrintAsPdf(report);
As you can see the report goes to pdf in a new browser window.
(I have some other reports: there is some Textbox in the DataBound like this and fails too. In prewiev ok.)
If you look the attached image: 1. report in prewiev, 2. report in application (pdf), 3. report in designer, 4. SPSzamlanyomtatas.VevoNev properties.
Attila
I tried your sample - it's ok.
My simplyfied sample is ok in designer prewiev. But in the server it's not.
Moreover, my real report is ok in designer prewiev!
There is something in the code that makes a mess of the report?
Code:
StiOptions.Engine.AllowSetCurrentDirectory = false;
StiFontCollection.AddFontFile("Fonts/arial.ttf", "Arial");
StiBlazorHelper.Initialize(jsRuntime);
Stimulsoft.Report.Export.StiPdfExportSettings exportsettings = new();
exportsettings.AutoPrintMode = Stimulsoft.Report.Export.StiPdfAutoPrintMode.Silent;
StiReport report = new StiReport();
report.Load("wwwroot/invoices/SzamlaA4Ketpld.mrt");
string connstr = DataGeneral.GetConnectionString(adatbazis);
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new StiSqlDatabase("MS SQL", connstr));
report["@SzamlaIds"] = szamlaIds;
report.Dictionary.Variables["KellAtutalaskod"].ValueObject = true;
report.ReportAlias = szamlaszam;
report.ReportName = szamlaszam;
report.Render(true);
StiReportResponse.PrintAsPdf(report);
As you can see the report goes to pdf in a new browser window.
(I have some other reports: there is some Textbox in the DataBound like this and fails too. In prewiev ok.)
If you look the attached image: 1. report in prewiev, 2. report in application (pdf), 3. report in designer, 4. SPSzamlanyomtatas.VevoNev properties.
Attila
- Attachments
-
- Images.jpg (246.96 KiB) Viewed 228 times
-
- Posts: 587
- Joined: Tue Sep 07, 2021 10:11 am
Re: TextBox CanGrow?
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you
Please send us a sample project that reproduces the issue for analysis.
Thank you
Re: TextBox CanGrow?
Hello!
It seems that problem solved.
Believe it or not, I set "Allow HTML Tags" to True, and it is OK.
Thank you for your help.
Regards
Attila
It seems that problem solved.
Believe it or not, I set "Allow HTML Tags" to True, and it is OK.
Thank you for your help.
Regards
Attila
-
- Posts: 5442
- Joined: Tue Mar 20, 2018 5:34 am
Re: TextBox CanGrow?
Hello,
You are welcome.
You are welcome.