Solved

Is it possible to change controls properties at runtime in a RDLC file?

Posted on 2007-11-27
3
1,712 Views
Last Modified: 2013-11-26
I have a local report (rdlc file) which I display in a Report Viewer control in a web-form.
May I in some way, in runtime, reference a control in the report, in my case a "rectangle" control, in order to change the Location / Top property of that control.
I need to do some position alignment to fit spesial forms on different printers

I have tried different syntaxes, but always there is an error:
 Dim rect As New Rectangle
 rect = ReportViewer1.FindControl("rectangle")

0
Comment
Question by:Joar
3 Comments
 
LVL 16

Accepted Solution

by:
SQL_SERVER_DBA earned 500 total points
Comment Utility
0
 

Author Comment

by:Joar
Comment Utility
Sorry, I can not see that this article tells me how to reference a control in a local report (rdlc), lets say a rectangle, in order to modify some properties in that control???
In my case I want (in runtime) to reposition a rectangle by justifying the Location property (Top / Left).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now