data band columns with non-constant width

Stimulsoft Reports.NET discussion
Post Reply
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

data band columns with non-constant width

Post by Jozef Balga »

Hello!

I need to solve a quite strange problem. I have a data source with 15 elements/columns. I have to export the rendered report to pdf and xlsx formats, where the page size of pdf documents must be A4 with landscape orientation. There are no restrictions on page size for excel document and I would like to export the document where the width of the columns would be different -> wider (the coulmn width would be multiplied by a constant value) than the pdf export. For example the column width for custmer_name would be 4 cm in the pdf, and 6 cm for the excel export.
The output format is available at the render time - I use a report variable for that - which is set for C# code.
Is there a stimulsoft component, which could be used for this?
As far as I know the standard databand combined with stitext is not good enough for this: when I change the column width for the leftmost text, every other text components must be repositioned :(.
The other component I thought about is the Table but I am not sure if it would look correctly in the pdf - I would like to set minimum column width.
Is there any other component which I can use?
Thank you.

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

Re: data band columns with non-constant width

Post by HighAley »

Hello, Jozef.

It's better to discuss any exact sample. But as we understand now, there are several ways: Thank you.
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

Re: data band columns with non-constant width

Post by Jozef Balga »

Sample files attached. The component dimensions are "optimized" for A4 landscape pdf output. For the excel export I would like to increase only the width of the columns (and keep the font size unchanged) - e.g. stretch the table horizontally. Thank you.
Attachments
dynamic.xml
xml input
(2.69 KiB) Downloaded 463 times
dynamic.xsd
xsd for the input
(1.63 KiB) Downloaded 370 times
Report.mrt
report template
(41.18 KiB) Downloaded 548 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: data band columns with non-constant width

Post by HighAley »

Hello.

How much do you want to stretch the columns?
What columns do you need to stretch?
Maybe it will be easier to resize columns in Excel? Because the report is exported to every format as is. If you want to change something you should change the report at first and then export it.

Thank you.
Post Reply