I'm using SQL Server 2000 SP3 Reporting Services SP2
Currently my reports are configured to use a shared data source reference.
The credentials for the data source are configured to use the same specified
user name and password, which is a login I created for the purpose of
generating the reports.
Is there a way to pass a SQL Server account user name and password to the
data source instead of using a shared account?
I've tried creating a Data Source Credentials object, but it didn't work:
dim dsc as new DataSourceCredentials
dsc.DataSourceName = "dsn"
dsc.UserName = "unm"
dsc.Password = "pwd"
...
result = rs.Render (...,dsc,...)
...
Unfortunately, I am prevented from using integrated security.
The report renders fine using the data source reference pre-configured with
the shared username and password.
Thanks!
BillHere is what I do and I think is the best thing to do. Create a readonly SQL
Server user account. Use that for your shared datasource. Limit your access
to reports using the built in security model (based on roles). If a user has
rights to run the report they they see the data. They don't need to use
their SQL Server login to do so. This will prevent you from having to manage
SQL Server accounts as much. And, it is better for performance.
By using a single, read only account it means that all database access is
happening through that account which allows connection pooling to do its
magic. Connection pooling only works if the connection string is identical.
Establishing connections is expensive. If you go the route you are
suggesting (which is not possible out of the box, you would have to write
your own forms based authentication and integrate it) then every time a new
user requests a report there will be a new connection being established to
the server.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"BillE" <belgie@.datamti.com> wrote in message
news:ercHCCmCHHA.3924@.TK2MSFTNGP02.phx.gbl...
> I'm using SQL Server 2000 SP3 Reporting Services SP2
> Currently my reports are configured to use a shared data source reference.
> The credentials for the data source are configured to use the same
> specified user name and password, which is a login I created for the
> purpose of generating the reports.
> Is there a way to pass a SQL Server account user name and password to the
> data source instead of using a shared account?
> I've tried creating a Data Source Credentials object, but it didn't work:
> dim dsc as new DataSourceCredentials
> dsc.DataSourceName = "dsn"
> dsc.UserName = "unm"
> dsc.Password = "pwd"
> ...
> result = rs.Render (...,dsc,...)
> ...
> Unfortunately, I am prevented from using integrated security.
> The report renders fine using the data source reference pre-configured
> with the shared username and password.
> Thanks!
> Bill
>
>|||Thanks for your response. This is a grey area for me, and I'm having some
trouble with it.
In the model I'm using, the user selects parameters in a web forms
interface, which builds a URL and submits it to the report server. The
report is rendered in the browser.
If the user bookmarks the report, it can be retrieved at any time from the
report server by opening the bookmark. No login is necessary, since the
report uses the shared login.
I don't see a security context to prevent a user without the appropriate
role membership from accessing a report. Perhaps my entire model is flawed.
Thanks
Bill
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:OhCo0bmCHHA.4892@.TK2MSFTNGP04.phx.gbl...
> Here is what I do and I think is the best thing to do. Create a readonly
> SQL Server user account. Use that for your shared datasource. Limit your
> access to reports using the built in security model (based on roles). If a
> user has rights to run the report they they see the data. They don't need
> to use their SQL Server login to do so. This will prevent you from having
> to manage SQL Server accounts as much. And, it is better for performance.
> By using a single, read only account it means that all database access is
> happening through that account which allows connection pooling to do its
> magic. Connection pooling only works if the connection string is
> identical. Establishing connections is expensive. If you go the route you
> are suggesting (which is not possible out of the box, you would have to
> write your own forms based authentication and integrate it) then every
> time a new user requests a report there will be a new connection being
> established to the server.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "BillE" <belgie@.datamti.com> wrote in message
> news:ercHCCmCHHA.3924@.TK2MSFTNGP02.phx.gbl...
>> I'm using SQL Server 2000 SP3 Reporting Services SP2
>> Currently my reports are configured to use a shared data source
>> reference.
>> The credentials for the data source are configured to use the same
>> specified user name and password, which is a login I created for the
>> purpose of generating the reports.
>> Is there a way to pass a SQL Server account user name and password to the
>> data source instead of using a shared account?
>> I've tried creating a Data Source Credentials object, but it didn't work:
>> dim dsc as new DataSourceCredentials
>> dsc.DataSourceName = "dsn"
>> dsc.UserName = "unm"
>> dsc.Password = "pwd"
>> ...
>> result = rs.Render (...,dsc,...)
>> ...
>> Unfortunately, I am prevented from using integrated security.
>> The report renders fine using the data source reference pre-configured
>> with the shared username and password.
>> Thanks!
>> Bill
>>
>|||RS always has a security context. Being able to have a report rendered is
different from the security used to actually get the data. For the report to
be rendered RS has to know who the user is. It then uses its role based
security to decide whether to provide the service. Then it renders the
report using the security specified for getting the data. Two levels of
security. Rights to run/render the report, rights to get the data. You have
been thinking on the latter when really the issue is more the former.
You have three choices.
1. Create your own authentication. This allows you to have the user log to
your app using the SQL Server login and have that be the login to your app.
You have to integrate this into Reporting Services.
2. Use integrated security where the windows credentials are used to
authenticate into RS. Then integrated security is use for the data source of
the reports as well.
3. Use integrated security where the windows credentials are used to
authenticate into RS. Then, use a fixed SQL Server account (one or more) in
the credentials tab of shared data source.
I do and recommend #3. #1 is non-trivial. #2 is lower performing and in your
case you say you can't use.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"BillE" <belgie@.datamti.com> wrote in message
news:uEuGchnCHHA.3228@.TK2MSFTNGP03.phx.gbl...
> Thanks for your response. This is a grey area for me, and I'm having some
> trouble with it.
> In the model I'm using, the user selects parameters in a web forms
> interface, which builds a URL and submits it to the report server. The
> report is rendered in the browser.
> If the user bookmarks the report, it can be retrieved at any time from the
> report server by opening the bookmark. No login is necessary, since the
> report uses the shared login.
> I don't see a security context to prevent a user without the appropriate
> role membership from accessing a report. Perhaps my entire model is
> flawed.
> Thanks
> Bill
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:OhCo0bmCHHA.4892@.TK2MSFTNGP04.phx.gbl...
>> Here is what I do and I think is the best thing to do. Create a readonly
>> SQL Server user account. Use that for your shared datasource. Limit your
>> access to reports using the built in security model (based on roles). If
>> a user has rights to run the report they they see the data. They don't
>> need to use their SQL Server login to do so. This will prevent you from
>> having to manage SQL Server accounts as much. And, it is better for
>> performance.
>> By using a single, read only account it means that all database access is
>> happening through that account which allows connection pooling to do its
>> magic. Connection pooling only works if the connection string is
>> identical. Establishing connections is expensive. If you go the route you
>> are suggesting (which is not possible out of the box, you would have to
>> write your own forms based authentication and integrate it) then every
>> time a new user requests a report there will be a new connection being
>> established to the server.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "BillE" <belgie@.datamti.com> wrote in message
>> news:ercHCCmCHHA.3924@.TK2MSFTNGP02.phx.gbl...
>> I'm using SQL Server 2000 SP3 Reporting Services SP2
>> Currently my reports are configured to use a shared data source
>> reference.
>> The credentials for the data source are configured to use the same
>> specified user name and password, which is a login I created for the
>> purpose of generating the reports.
>> Is there a way to pass a SQL Server account user name and password to
>> the data source instead of using a shared account?
>> I've tried creating a Data Source Credentials object, but it didn't
>> work:
>> dim dsc as new DataSourceCredentials
>> dsc.DataSourceName = "dsn"
>> dsc.UserName = "unm"
>> dsc.Password = "pwd"
>> ...
>> result = rs.Render (...,dsc,...)
>> ...
>> Unfortunately, I am prevented from using integrated security.
>> The report renders fine using the data source reference pre-configured
>> with the shared username and password.
>> Thanks!
>> Bill
>>
>>
>|||This client has users sharing computers, and they don't want to log off and
log on each time they switch users. However, one user may have access to
some reports which another user doesn't.
I'll have to pursue option #1, or (preferably) convince the client to come
to his senses.
Thanks for your help, I have a clearer understanding of the situation now.
Bill
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:%232RmlDoCHHA.4256@.TK2MSFTNGP04.phx.gbl...
> RS always has a security context. Being able to have a report rendered is
> different from the security used to actually get the data. For the report
> to be rendered RS has to know who the user is. It then uses its role based
> security to decide whether to provide the service. Then it renders the
> report using the security specified for getting the data. Two levels of
> security. Rights to run/render the report, rights to get the data. You
> have been thinking on the latter when really the issue is more the former.
> You have three choices.
> 1. Create your own authentication. This allows you to have the user log to
> your app using the SQL Server login and have that be the login to your
> app. You have to integrate this into Reporting Services.
> 2. Use integrated security where the windows credentials are used to
> authenticate into RS. Then integrated security is use for the data source
> of the reports as well.
> 3. Use integrated security where the windows credentials are used to
> authenticate into RS. Then, use a fixed SQL Server account (one or more)
> in the credentials tab of shared data source.
> I do and recommend #3. #1 is non-trivial. #2 is lower performing and in
> your case you say you can't use.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "BillE" <belgie@.datamti.com> wrote in message
> news:uEuGchnCHHA.3228@.TK2MSFTNGP03.phx.gbl...
>> Thanks for your response. This is a grey area for me, and I'm having
>> some trouble with it.
>> In the model I'm using, the user selects parameters in a web forms
>> interface, which builds a URL and submits it to the report server. The
>> report is rendered in the browser.
>> If the user bookmarks the report, it can be retrieved at any time from
>> the report server by opening the bookmark. No login is necessary, since
>> the report uses the shared login.
>> I don't see a security context to prevent a user without the appropriate
>> role membership from accessing a report. Perhaps my entire model is
>> flawed.
>> Thanks
>> Bill
>>
>> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> news:OhCo0bmCHHA.4892@.TK2MSFTNGP04.phx.gbl...
>> Here is what I do and I think is the best thing to do. Create a readonly
>> SQL Server user account. Use that for your shared datasource. Limit your
>> access to reports using the built in security model (based on roles). If
>> a user has rights to run the report they they see the data. They don't
>> need to use their SQL Server login to do so. This will prevent you from
>> having to manage SQL Server accounts as much. And, it is better for
>> performance.
>> By using a single, read only account it means that all database access
>> is happening through that account which allows connection pooling to do
>> its magic. Connection pooling only works if the connection string is
>> identical. Establishing connections is expensive. If you go the route
>> you are suggesting (which is not possible out of the box, you would have
>> to write your own forms based authentication and integrate it) then
>> every time a new user requests a report there will be a new connection
>> being established to the server.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "BillE" <belgie@.datamti.com> wrote in message
>> news:ercHCCmCHHA.3924@.TK2MSFTNGP02.phx.gbl...
>> I'm using SQL Server 2000 SP3 Reporting Services SP2
>> Currently my reports are configured to use a shared data source
>> reference.
>> The credentials for the data source are configured to use the same
>> specified user name and password, which is a login I created for the
>> purpose of generating the reports.
>> Is there a way to pass a SQL Server account user name and password to
>> the data source instead of using a shared account?
>> I've tried creating a Data Source Credentials object, but it didn't
>> work:
>> dim dsc as new DataSourceCredentials
>> dsc.DataSourceName = "dsn"
>> dsc.UserName = "unm"
>> dsc.Password = "pwd"
>> ...
>> result = rs.Render (...,dsc,...)
>> ...
>> Unfortunately, I am prevented from using integrated security.
>> The report renders fine using the data source reference pre-configured
>> with the shared username and password.
>> Thanks!
>> Bill
>>
>>
>>
>
Showing posts with label reference. Show all posts
Showing posts with label reference. Show all posts
Wednesday, March 7, 2012
Sunday, February 12, 2012
Can I obtain a reference to a report item?
SSRS 2005
This question is loosely related to the one I posed in "Can report content
be generated dynamically?"
I would like to make sure that the text boxes in the report footer are
always formatted the same way...same font face, font size, same size,
position, etc. But I also want to allow for the fact that these standard
settings may change over time.
I know I could create a custom code assembly and use expressions to set the
attributes of the text boxes. For example, for each textbox I could set the
FontSize property like this:
=Code.OakRptLib.FooterFontSize()
This approach works but it is a little clumsey.
I would prefer to be able to pass a reference to the textbox to a function
in my custom code assembly so that I could set all of the standard settings
using one function call.
For example I would set the text by setting the Value property like this:
=Code.OakRptLib.BuildPageFooterLeft(ref)
Where "ref" would be a reference to the textbox and would be used by
BuildPageFooterLeft() to set all of the other textbox settings (font, textbox
size, position, etc.).
Is there a way to do this? I cannot find a way to pass a reference to a
textbox object to my custom code assembly.
Thanks!
--
Chris, SSSIWhy not write a utility that just updates all your reports and changes the
footers to be whatever standard you define? You could use a web service to
get the reports in the reports collection, then you can export the rdl file
as an XML file (since it IS XML), next have a XML DOM object point to that,
query down to the PageFooter->ReportItems collection. Now loop for all
TextBox items, and you can respecify how you want the standard look and feel
to be for all the textbox attributes.
To see how this is laid out, I highly reccommend XML Notepad 2006 from
Microsoft. You can download it from their web site. Do a search for it. They
just put it out to download awhile back. It has been missing for quite a
number of years as they have made great improvements to it.
=-Chris
"Chris G." <ChrisG@.nospam.nospam> wrote in message
news:4DCEE1FA-0D17-4C0C-BCD5-DD393305F4D1@.microsoft.com...
> SSRS 2005
> This question is loosely related to the one I posed in "Can report content
> be generated dynamically?"
> I would like to make sure that the text boxes in the report footer are
> always formatted the same way...same font face, font size, same size,
> position, etc. But I also want to allow for the fact that these standard
> settings may change over time.
> I know I could create a custom code assembly and use expressions to set
> the
> attributes of the text boxes. For example, for each textbox I could set
> the
> FontSize property like this:
> =Code.OakRptLib.FooterFontSize()
> This approach works but it is a little clumsey.
> I would prefer to be able to pass a reference to the textbox to a function
> in my custom code assembly so that I could set all of the standard
> settings
> using one function call.
> For example I would set the text by setting the Value property like this:
> =Code.OakRptLib.BuildPageFooterLeft(ref)
> Where "ref" would be a reference to the textbox and would be used by
> BuildPageFooterLeft() to set all of the other textbox settings (font,
> textbox
> size, position, etc.).
> Is there a way to do this? I cannot find a way to pass a reference to a
> textbox object to my custom code assembly.
> Thanks!
> --
> Chris, SSSI|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community 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.|||Chris,
>>Why not write a utility that just updates all your reports and changes the
>>footers to be whatever standard you define?
I have thought of doing that as well. The reasons I have not taken that
approach are:
1. More effort at this point than is warranted by the constraints of the
project
2. It is a design time solution and not a run time solution. We will have a
single suite of reports that support multiple clients, and a run time
solution permits more flexibility for each client. Yes we could have copies
of reports for each client and tools to deploy them when updates are made,
but again that is beyond the scope of this project at this time.
Thanks a lot for your ideas and any further advice would be greatly
appreciated!
--
Chris, SSSI
"Chris Conner" wrote:
> Why not write a utility that just updates all your reports and changes the
> footers to be whatever standard you define? You could use a web service to
> get the reports in the reports collection, then you can export the rdl file
> as an XML file (since it IS XML), next have a XML DOM object point to that,
> query down to the PageFooter->ReportItems collection. Now loop for all
> TextBox items, and you can respecify how you want the standard look and feel
> to be for all the textbox attributes.
> To see how this is laid out, I highly reccommend XML Notepad 2006 from
> Microsoft. You can download it from their web site. Do a search for it. They
> just put it out to download awhile back. It has been missing for quite a
> number of years as they have made great improvements to it.
> =-Chris
>
> "Chris G." <ChrisG@.nospam.nospam> wrote in message
> news:4DCEE1FA-0D17-4C0C-BCD5-DD393305F4D1@.microsoft.com...
> > SSRS 2005
> >
> > This question is loosely related to the one I posed in "Can report content
> > be generated dynamically?"
> >
> > I would like to make sure that the text boxes in the report footer are
> > always formatted the same way...same font face, font size, same size,
> > position, etc. But I also want to allow for the fact that these standard
> > settings may change over time.
> >
> > I know I could create a custom code assembly and use expressions to set
> > the
> > attributes of the text boxes. For example, for each textbox I could set
> > the
> > FontSize property like this:
> >
> > =Code.OakRptLib.FooterFontSize()
> >
> > This approach works but it is a little clumsey.
> >
> > I would prefer to be able to pass a reference to the textbox to a function
> > in my custom code assembly so that I could set all of the standard
> > settings
> > using one function call.
> >
> > For example I would set the text by setting the Value property like this:
> > =Code.OakRptLib.BuildPageFooterLeft(ref)
> >
> > Where "ref" would be a reference to the textbox and would be used by
> > BuildPageFooterLeft() to set all of the other textbox settings (font,
> > textbox
> > size, position, etc.).
> >
> > Is there a way to do this? I cannot find a way to pass a reference to a
> > textbox object to my custom code assembly.
> >
> > Thanks!
> >
> > --
> > Chris, SSSI
>
>|||Hi Wei,
Chris Connor's reply was interesting and appreciated, but it did not really
answer my questions...it proposed an alternative approach. Could you please
reread my original post and in particular answer these questions?:
"I would prefer to be able to pass a reference to the textbox to a function
in my custom code assembly so that I could set all of the standard settings
using one function call.
...
Is there a way to do this? I cannot find a way to pass a reference to a
textbox object to my custom code assembly."
Thanks!
-- Chris
--
Chris, SSSI
"Wei Lu [MSFT]" wrote:
> Hi ,
> How is everything going? Please feel free to let me know if you need any
> assistance.
> Sincerely,
> Wei Lu
> Microsoft Online Community 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.
>|||Hello Chris,
I have read your original post. And my understanding is that you may try to
deploy a report and the report user could modify the textbox layout via
some parameter. If I am offset, please let me know.
Based on my research, you may not get the reference to change the Height
and Width of a ReportItem. They are readonly.
You may try to use the Reporting Services Web Services to render a
Reporting from the XML DOM object and you could made the XML modification
in your program.
This seems to be the only way you could do.
Sincerely,
Wei Lu
Microsoft Online Community 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
This question is loosely related to the one I posed in "Can report content
be generated dynamically?"
I would like to make sure that the text boxes in the report footer are
always formatted the same way...same font face, font size, same size,
position, etc. But I also want to allow for the fact that these standard
settings may change over time.
I know I could create a custom code assembly and use expressions to set the
attributes of the text boxes. For example, for each textbox I could set the
FontSize property like this:
=Code.OakRptLib.FooterFontSize()
This approach works but it is a little clumsey.
I would prefer to be able to pass a reference to the textbox to a function
in my custom code assembly so that I could set all of the standard settings
using one function call.
For example I would set the text by setting the Value property like this:
=Code.OakRptLib.BuildPageFooterLeft(ref)
Where "ref" would be a reference to the textbox and would be used by
BuildPageFooterLeft() to set all of the other textbox settings (font, textbox
size, position, etc.).
Is there a way to do this? I cannot find a way to pass a reference to a
textbox object to my custom code assembly.
Thanks!
--
Chris, SSSIWhy not write a utility that just updates all your reports and changes the
footers to be whatever standard you define? You could use a web service to
get the reports in the reports collection, then you can export the rdl file
as an XML file (since it IS XML), next have a XML DOM object point to that,
query down to the PageFooter->ReportItems collection. Now loop for all
TextBox items, and you can respecify how you want the standard look and feel
to be for all the textbox attributes.
To see how this is laid out, I highly reccommend XML Notepad 2006 from
Microsoft. You can download it from their web site. Do a search for it. They
just put it out to download awhile back. It has been missing for quite a
number of years as they have made great improvements to it.
=-Chris
"Chris G." <ChrisG@.nospam.nospam> wrote in message
news:4DCEE1FA-0D17-4C0C-BCD5-DD393305F4D1@.microsoft.com...
> SSRS 2005
> This question is loosely related to the one I posed in "Can report content
> be generated dynamically?"
> I would like to make sure that the text boxes in the report footer are
> always formatted the same way...same font face, font size, same size,
> position, etc. But I also want to allow for the fact that these standard
> settings may change over time.
> I know I could create a custom code assembly and use expressions to set
> the
> attributes of the text boxes. For example, for each textbox I could set
> the
> FontSize property like this:
> =Code.OakRptLib.FooterFontSize()
> This approach works but it is a little clumsey.
> I would prefer to be able to pass a reference to the textbox to a function
> in my custom code assembly so that I could set all of the standard
> settings
> using one function call.
> For example I would set the text by setting the Value property like this:
> =Code.OakRptLib.BuildPageFooterLeft(ref)
> Where "ref" would be a reference to the textbox and would be used by
> BuildPageFooterLeft() to set all of the other textbox settings (font,
> textbox
> size, position, etc.).
> Is there a way to do this? I cannot find a way to pass a reference to a
> textbox object to my custom code assembly.
> Thanks!
> --
> Chris, SSSI|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community 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.|||Chris,
>>Why not write a utility that just updates all your reports and changes the
>>footers to be whatever standard you define?
I have thought of doing that as well. The reasons I have not taken that
approach are:
1. More effort at this point than is warranted by the constraints of the
project
2. It is a design time solution and not a run time solution. We will have a
single suite of reports that support multiple clients, and a run time
solution permits more flexibility for each client. Yes we could have copies
of reports for each client and tools to deploy them when updates are made,
but again that is beyond the scope of this project at this time.
Thanks a lot for your ideas and any further advice would be greatly
appreciated!
--
Chris, SSSI
"Chris Conner" wrote:
> Why not write a utility that just updates all your reports and changes the
> footers to be whatever standard you define? You could use a web service to
> get the reports in the reports collection, then you can export the rdl file
> as an XML file (since it IS XML), next have a XML DOM object point to that,
> query down to the PageFooter->ReportItems collection. Now loop for all
> TextBox items, and you can respecify how you want the standard look and feel
> to be for all the textbox attributes.
> To see how this is laid out, I highly reccommend XML Notepad 2006 from
> Microsoft. You can download it from their web site. Do a search for it. They
> just put it out to download awhile back. It has been missing for quite a
> number of years as they have made great improvements to it.
> =-Chris
>
> "Chris G." <ChrisG@.nospam.nospam> wrote in message
> news:4DCEE1FA-0D17-4C0C-BCD5-DD393305F4D1@.microsoft.com...
> > SSRS 2005
> >
> > This question is loosely related to the one I posed in "Can report content
> > be generated dynamically?"
> >
> > I would like to make sure that the text boxes in the report footer are
> > always formatted the same way...same font face, font size, same size,
> > position, etc. But I also want to allow for the fact that these standard
> > settings may change over time.
> >
> > I know I could create a custom code assembly and use expressions to set
> > the
> > attributes of the text boxes. For example, for each textbox I could set
> > the
> > FontSize property like this:
> >
> > =Code.OakRptLib.FooterFontSize()
> >
> > This approach works but it is a little clumsey.
> >
> > I would prefer to be able to pass a reference to the textbox to a function
> > in my custom code assembly so that I could set all of the standard
> > settings
> > using one function call.
> >
> > For example I would set the text by setting the Value property like this:
> > =Code.OakRptLib.BuildPageFooterLeft(ref)
> >
> > Where "ref" would be a reference to the textbox and would be used by
> > BuildPageFooterLeft() to set all of the other textbox settings (font,
> > textbox
> > size, position, etc.).
> >
> > Is there a way to do this? I cannot find a way to pass a reference to a
> > textbox object to my custom code assembly.
> >
> > Thanks!
> >
> > --
> > Chris, SSSI
>
>|||Hi Wei,
Chris Connor's reply was interesting and appreciated, but it did not really
answer my questions...it proposed an alternative approach. Could you please
reread my original post and in particular answer these questions?:
"I would prefer to be able to pass a reference to the textbox to a function
in my custom code assembly so that I could set all of the standard settings
using one function call.
...
Is there a way to do this? I cannot find a way to pass a reference to a
textbox object to my custom code assembly."
Thanks!
-- Chris
--
Chris, SSSI
"Wei Lu [MSFT]" wrote:
> Hi ,
> How is everything going? Please feel free to let me know if you need any
> assistance.
> Sincerely,
> Wei Lu
> Microsoft Online Community 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.
>|||Hello Chris,
I have read your original post. And my understanding is that you may try to
deploy a report and the report user could modify the textbox layout via
some parameter. If I am offset, please let me know.
Based on my research, you may not get the reference to change the Height
and Width of a ReportItem. They are readonly.
You may try to use the Reporting Services Web Services to render a
Reporting from the XML DOM object and you could made the XML modification
in your program.
This seems to be the only way you could do.
Sincerely,
Wei Lu
Microsoft Online Community 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
Subscribe to:
Posts (Atom)