Showing posts with label width. Show all posts
Showing posts with label width. Show all posts

Monday, March 19, 2012

Dynamic image size on rdlc report

Hi.

How to set the image size (height and width) dynamically? Size of the image will be obtained from a data field. I tried to edit the source but found no luck:

<TableCell> <ReportItems> <Image Name="img3"> <Sizing>Clip</Sizing> <Source>External</Source> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor> <Default>Red</Default> </BorderColor> </Style> <Width>0.12in</Width> <Value>file:///c:\barbetter.bmp</Value> </Image> </ReportItems> </TableCell>

I hope someone can help me with this.. Thanks

Raniel L.

I don't think this can be done unless you're generating the report in XML on the fly.

Sunday, February 19, 2012

Dynamic columns

I am setting visible property for column based on user input. This works
fine. However, I need to be able to change the width to 0 for the column as
well so the report will not print blank pages. A matrix is NOT an option.
Report is too complicated. Unfortunately there is no expression option for
the column width. Is there any way of setting this to 0 or autosize' Also
need to adjust the body width dynamically.On May 29, 3:32 pm, Sherminator
<Shermina...@.discussions.microsoft.com> wrote:
> I am setting visible property for column based on user input. This works
> fine. However, I need to be able to change the width to 0 for the column as
> well so the report will not print blank pages. A matrix is NOT an option.
> Report is too complicated. Unfortunately there is no expression option for
> the column width. Is there any way of setting this to 0 or autosize' Also
> need to adjust the body width dynamically.
Unfortunately, there are not very many options available if a matrix
control is not an option. You could try putting the table control(s)
in a rectangle. Also, you could try to rearrange the columns according
to the ones most likely to be invisible. Sorry that I could not be of
greater assistance.
Regards,
Enrique Martinez
Sr. Software Consultant|||It's not a matter of the columns not showing, so the order doesn't matter.
They do hide, however blank pages print because the body is over 18 inches
when all columns are populated. Unfortunately, the tablecolumn element is not
available thru the ReportItems collections. If it were I could reset the
width of the empty columns to 0 using a function and adjust the body width if
it too were available thru the ReportItems collection, however, those
elements are not available to my knowledge.
"EMartinez" wrote:
> On May 29, 3:32 pm, Sherminator
> <Shermina...@.discussions.microsoft.com> wrote:
> > I am setting visible property for column based on user input. This works
> > fine. However, I need to be able to change the width to 0 for the column as
> > well so the report will not print blank pages. A matrix is NOT an option.
> > Report is too complicated. Unfortunately there is no expression option for
> > the column width. Is there any way of setting this to 0 or autosize' Also
> > need to adjust the body width dynamically.
>
> Unfortunately, there are not very many options available if a matrix
> control is not an option. You could try putting the table control(s)
> in a rectangle. Also, you could try to rearrange the columns according
> to the ones most likely to be invisible. Sorry that I could not be of
> greater assistance.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>

Dynamic column width? Any way to do it?

Hi,

Is there a way to dynamically change the column width depends on the length of the data retrieved? Meaning, if I retrieve a number 11.0031243 or 11.3, it should fit into the column just nice with no redundant spaces. The width of the header should follows.

Is that possible?

Thanks!Ya its possible but u need to calculate the length of the retrieved field and accordingly u can adjust width of the column in Cystal Rpt...
Before that at the time of testing u need to confirm how many characters u can place in ur column field...
if u have any query abt this soln pls tell me....

Dynamic column width

Hi all does anyone know how i can resize a table column at run time
Thanks AndrewOn Thu, 18 Nov 2004 09:15:22 -0000, andrew bourne
<andrewbourne@.vardells.com> wrote:
> Hi all does anyone know how i can resize a table column at run time
no, it is not possible in this version of RS, maybe we will see that in
next SP :)
--
Ing. Branislav Gerzo

Dynamic column width

Is it possible to use an expression for the width of a column?
thanks,
robTried doing a conditional IIF statement in a columns (ColumnWidth
proeperty) and got an invalid value error. So I think not.|||Tried doing a conditional IIF statement in a columns (ColumnWidth
proeperty) and got an invalid value error. So I think not.