TextBox CanGrow?

Stimulsoft Reports.BLAZOR discussion
Post Reply
Jose
Posts: 16
Joined: Thu Oct 17, 2019 8:42 am

TextBox CanGrow?

Post by Jose »

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
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: TextBox CanGrow?

Post by Max Shamanov »

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.
Attachments
All Group Footers at End.mrt
(76.46 KiB) Downloaded 130 times
Jose
Posts: 16
Joined: Thu Oct 17, 2019 8:42 am

Re: TextBox CanGrow?

Post by Jose »

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
Attachments
Images.jpg
Images.jpg (246.96 KiB) Viewed 8434 times
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: TextBox CanGrow?

Post by Max Shamanov »

Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you
Jose
Posts: 16
Joined: Thu Oct 17, 2019 8:42 am

Re: TextBox CanGrow?

Post by Jose »

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
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: TextBox CanGrow?

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply