all groups > sql server reporting services > december 2005 >
You're in the

sql server reporting services

group:

Need a way to change report page width at runtime


Need a way to change report page width at runtime msdnuser
12/14/2005 1:16:26 PM
sql server reporting services:
I have a report whose columns will be hidden at runtime and the final width
of the table during runtime will be less than 10.5. However initially at
design time my table width is more than 10.5 and hence my report page width
is also more than 10.5. Thus when I export the page to pdf format in report
manager it adds a blank page for each and every normal page with data. is
there a way to modify the width of report page and in turn table width during
runtime, so that blank page can be avoided in pdf export?

I cannot use matrix or others due to various reasons. I can use only table
in my report. is there any other way to change report page width at runtime
without dealing with report rdl file (xml file) directly?

I am using Microsoft SQL Server 2005 Reporting Services.
RE: Need a way to change report page width at runtime Wayne Snyder
12/14/2005 1:51:15 PM
I should add, that I really mean I don't think you can change this on the fly
without writing a custom rendering extension.
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC

I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.


[quoted text, click to view]
RE: Need a way to change report page width at runtime Wayne Snyder
12/14/2005 2:42:46 PM
Although I am not 100% on this - I don't think you can change this on the
fly...
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC

I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.


[quoted text, click to view]
RE: Need a way to change report page width at runtime msdnuser
12/14/2005 4:25:22 PM
Thank you very much for your response. However we dont have plans to write
our own rendering extension, so is it possible to parse rdl file before
rendering and change the column width, table width and page width? if that is
possible then is there any example that I can follow to proceed further?

[quoted text, click to view]
RE: Need a way to change report page width at runtime petery NO[at]SPAM online.microsoft.com
12/15/2005 3:45:49 AM
Hello,

I agree with Wayne that this is not support in builtin rendering extension
and there is no method to change report during the runtime.

If you want to deal with rdl directly, you may want to deisgn a Web
applicaiton using reporting services API directly. You could create report
by using reportingservices.createreport method. You could change rdl by
using code and then create a report on the fly. The following link is for
your reference

http://www.codeproject.com/aspnet/SQLRSViewer.asp

Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================


This posting is provided "AS IS" with no warranties, and confers no rights.


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