Click here to Skip to main content
15,889,838 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How can I dock my report viewer into parent container, using code.

Thanks
Furqan
Posted

1 solution

Try:
ReportViewer rv = new ReportViewer();
...
rv.Dock = DockStyle.Fill;
Controls.Add(rv);
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-Feb-11 10:43am    
As simple as that,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900