all groups > sql server reporting services > august 2006 >
You're in the

sql server reporting services

group:

Insert a Page


Insert a Page sperotti
8/3/2006 8:17:03 AM
sql server reporting services: Is there any way to insert a page into a report programatically or otherwise.
I have a report where the users want to choose to insert a coverpage in a
report. The scenario is that the user has a report options screen in the
user interface. One of the options is to create a coverpage. If the user
selects this option a page will be inserted as the first page in the report.

Any suggestions?

RE: Insert a Page magendo_man
8/3/2006 9:10:03 AM
You could use a table or a rectangle (containing textboxes) or some other
control for your cover page definition. Whatever you use you could try
setting the following properties on the control:

Hidden=Not(Parameters!WithCoverpage.Value)
PageBreakAtEnd=True

HTH,
Magendo_man

[quoted text, click to view]
RE: Insert a Page sperotti
8/3/2006 9:56:01 AM
Thanks for the reply.

I tried putting a rectangle with textboxes at the top of the Body section of
the report. Then I set the PageBreakAtEnd property to true. It works fine
with one minor exception.

When the rectangle hidden property is set to true, there is a space where
the rectangle is supposed to be.

Any thoughts?

Thanks

[quoted text, click to view]
RE: Insert a Page magendo_man
8/3/2006 10:16:02 AM
Do you have the next control (i.e. table, matrix, textbox, matrix,..)
positioned immediately after the rectangle in the body with no vertical space
between them? You can ensure this by looking at the properties of each and
checking their position, as drag and drop doesn't always make controls line
up accurately.

~ Magendo_man

[quoted text, click to view]
RE: Insert a Page sperotti
8/3/2006 10:23:01 AM
Thanks again.

Immediatly after the rectangle I have a list. There is no vertical space
between them. The problem is that the space left at the top of the first
page is equal to the full height of the rectangle.

[quoted text, click to view]
RE: Insert a Page Jim
8/3/2006 12:17:01 PM
I am having the exact same issue. I also tried removing all vertical space so
that the two boarders were touching but the issue still perists. Please let
me know if you find a soulution.

[quoted text, click to view]
RE: Insert a Page magendo_man
8/3/2006 2:35:01 PM
The only way I can think of getting round that is to use a table, which you
populate with text in a dataset depending on whether or not the WithCoverpage
parameter is set. Make sure that the table has no header or footer. However,
this restricts you as far as formatting the cover page is concerned. The
table should have the properties:

Hidden=Not(Parameters!WithCoverpage.Value)
PageBreakAtEnd=True

HTH,
Magendo_man



[quoted text, click to view]
AddThis Social Bookmark Button