C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Toolbar

rated by 0 users
This post has 4 Replies | 1 Follower

Not Ranked
Posts 12
morgenweck Posted: Mon, May 11 2009 3:51 PM

How can I add another button to the toolbar?  I need to have a buton for export.

Thanks,

Top 10 Contributor
Posts 1,237
Hi,
 
You might have to write some custom code for that to add new button in the tool bar.
It would be better to customize the C1DocumentViewer to add new button by creating a wrapper class of it.
 
Hope this helps.
 
Regard,
Patrick
<morgenweck> wrote in message news:217755@10.0.1.98...

How can I add another button to the toolbar?  I need to have a buton for export.

Thanks,



http://helpcentral.componentone.com/cs/forums/p/79202/217755.aspx#217755

Top 500 Contributor
Posts 14
x2miller replied on Wed, Jul 22 2009 1:29 PM
I need this too. I can't believe they left the export button out of the WPF document viewer. Did you ever figure out how to add it?
Not Ranked
Posts 12

The best that I could do is to add the entire Report Viewer to a Parent Form with it's own toolbar. Adding/hiding buttons should be built-in in my opinion. Maybe ComponentOne can show some sample code about how to customize the viewer to add buttons.

Top 500 Contributor
Posts 14
x2miller replied on Thu, Jul 23 2009 10:19 AM

Thanks for the reply. That's what I did too, but it looks goofy and tacked on since there is a lot of wasted space on the DocumentViewer toolbar and the toolbar I added on top.  After all the options available to the WinForm version, I just don't get the reason for making the WPF version so sparse, or not making it possible to add to it. It looks like they are not really serious about WPF, spending more time on ASP.Net and Silverlight. They seem to be limiting the WPF controls to what Silverlight can do. There may be a lot of interest in the .Net side now, but what I'm seeing is that with companies finally moving to VS08 and VS10, everyone is finally starting to pick up WPF and writing their new apps in it. I know we are. The interest in WPF is starting to explode and C1 is going to miss the boat. 

Can anyone give some example code of taking a WPF C1DocumentViewer and creating a wrapper class that would allow objects to be added to the built in toolbar?

Page 1 of 1 (5 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.