Showing posts with label tabular. Show all posts
Showing posts with label tabular. Show all posts

Tuesday, March 20, 2012

Repeating text and image

Seemingly I am having a difficult time resolving a simple problem, so here
goes.
I am listing hotels in the details of a tabular report, I would like to list
the hotels and show the number of stars for each hotel as an image. I would
like to do this all in one cell, but can't seem to add text and image in one
cell. The other problem I have is that I have an image of a star and I would
like to show this image 3 times for a 3 star resort or show it 4 times for a
4 star resort. I have read alot about turning on and off visibility, but how
do you add 4 different star images to one cell and have them next to one
another?
thanks
donWhy do you need to put them in the same cell? Can you leave them in
different cells and just merge those cells?
Fang Wang (MSFT)
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"don" <don@.discussions.microsoft.com> wrote in message
news:4C00F946-80DE-44E9-B4C0-6DEF3BE486B2@.microsoft.com...
> Seemingly I am having a difficult time resolving a simple problem, so here
> goes.
> I am listing hotels in the details of a tabular report, I would like to
list
> the hotels and show the number of stars for each hotel as an image. I
would
> like to do this all in one cell, but can't seem to add text and image in
one
> cell. The other problem I have is that I have an image of a star and I
would
> like to show this image 3 times for a 3 star resort or show it 4 times for
a
> 4 star resort. I have read alot about turning on and off visibility, but
how
> do you add 4 different star images to one cell and have them next to one
> another?
> thanks
> don|||I have not tried to merge the cells, but this would cause me problems in the
detail section, since the hotels name and stars would be in the grouping
section and that just means I have to work around that issue. Are you saying
there is no way to put repeating text and an image in the same cell? Or even
two images in the same cell?
thanks again
don
"Fang Wang (MSFT)" wrote:
> Why do you need to put them in the same cell? Can you leave them in
> different cells and just merge those cells?
> Fang Wang (MSFT)
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "don" <don@.discussions.microsoft.com> wrote in message
> news:4C00F946-80DE-44E9-B4C0-6DEF3BE486B2@.microsoft.com...
> > Seemingly I am having a difficult time resolving a simple problem, so here
> > goes.
> >
> > I am listing hotels in the details of a tabular report, I would like to
> list
> > the hotels and show the number of stars for each hotel as an image. I
> would
> > like to do this all in one cell, but can't seem to add text and image in
> one
> > cell. The other problem I have is that I have an image of a star and I
> would
> > like to show this image 3 times for a 3 star resort or show it 4 times for
> a
> > 4 star resort. I have read alot about turning on and off visibility, but
> how
> > do you add 4 different star images to one cell and have them next to one
> > another?
> >
> > thanks
> >
> > don
>
>

Friday, March 9, 2012

Repeat a table column on every new physical page

Hello,

I wonder how and if this can be achieved:

In a tabular report I have one or more columns that need to be repeated on every new physical page when printed.

Viewing the report in the ReportViewer control allows such columns to be fixed using the "FixedHeader" switch, allowing the user to conveniently scroll the reports content while always having the fixed columns in sight. This is perfect. However, when switching to the Print Layout view or when printing the report, I would like to have these fixed columns be printed on every new page that is generated at the beginning of the table printed.

E.g. I have a report that has a huge number of columns that need to be shown. When printed, the columns need at least 6 pages' width. I would be very convenient if I could repeat e.g. the first column (containing some identificational information) on every of these 6 pages. It wouldn't hurt if e.g. 7 pages would be generated because of the repeated column(s).

Any help is appreciated, thanks a lot!

Frank

If you want to repeat the table header row on each page, set RepeatHeaderOnNewPage=true for the table. Or if you want anything else (data) to repeat on each page, have it in the header and set the same property.

Shyam

|||

Thanks for trying to help, btu this is not what I would like to achieve. I want to repeat a column which is part of a table in the body.

Frank

|||

What do you mean by repeating a column? Can you give some examples?

Shyam

|||

Sorry for being unprecise:

Let's say I have table with 10 columns. Printing the report results in 3 physical pages, page 1 showing columns 1, 2 and 3, page 2 columns 4 and 5, and finally page 3 columns 6, 7, 8, 9, 10. This is the standard behaviour.

Assuming that column one has information that needs to be printed on all the resulting pages, I would like to be able to mark that column in a way that the printout is generated in the following way:

Page 1 showing column 1, 2 and 3, page 2 showing column 1 again then columns 4 and 5, and page 3 showing column 1 again then columns 6, 7, 8, 9, 10.

Of course repeating a column might result in additonal physical pages when printed, obviously becuase more space is needed per physical page. This would be ok.

Considering this and taking the example above again, the result could look like this:

Page 1 showing column 1, 2 and 3, page 2 showing column 1 again then column 4 forcing column 5 to be shown on the third page, resulting page 3 showing column 1, column 5, and e.g. columns 6, 7, 8, then adding a fourth page showing column 1 again and the rest of the columns 9 and 10.

The whole thing should work dynamically allowing multiple columns to be repeated.

|||

Use RepeatWith property of the textbox in your column and set it to the name of the table in which it is embedded.

Shyam