Solved

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

Posted on 2007-11-27
3
1,729 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
ID: 20358077
0
 

Author Comment

by:Joar
ID: 20358429
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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