Creating Own Toolbar

Stimulsoft Reports.NET discussion
Post Reply
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Creating Own Toolbar

Post by jellis »

Hi,

I want to create my own tool bar to use with the Preview Control. So basically turn the preview control toolbar off, and place the control on a form that has it's own toolbar. I can see that some of the toolbar functions can be called, but can't see them all (open for example). is there a standard way to call the functions as if the toolbar buttons had been clicked for all of the tools?

Regards,

J.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Creating Own Toolbar

Post by Edward »

Yes, there is a way.

In the 2008.1 official release the following methods had been added:

Code: Select all

    public void InvokeBookmarks();
    public void InvokeClickExportButton();
    public void InvokeClickOpenButton();
    public void InvokeClickPageDeleteButton();
    public void InvokeClickPageDesignButton();
    public void InvokeClickPageNewButton();
    public void InvokeClickPageSizeButton();
    public void InvokeClickPrintButton();
    public void InvokeClickSaveButton();
    public void InvokeClickSendEMailButton();
    public void InvokeClose();
    public void InvokeDotMatrix();
    public void InvokeFirstPage();
    public void InvokeFullScreen();
    public void InvokeLastPage();
    public void InvokeNextPage();
    public void InvokeOpen();
    public void InvokePageDelete();
    public void InvokePageDesign();
    public void InvokePageNew();
    public void InvokePageSize();
    public void InvokePrevPage();
    public void InvokePrint();
    public void InvokeProcessExport(StiExportService service);
    public void InvokeProcessSendEMail(StiExportService service);
    public void InvokeSave();
    public void InvokeThumbs();
    public void InvokeToolEditor();
    public void InvokeToolFind();
    public void InvokeToolHand();
    public void InvokeToolSelect();
    public void InvokeViewModeContinuous();
    public void InvokeViewModeMultiplePages();
    public void InvokeViewModeSinglePage();
    public void InvokeZoomIn();
    public void InvokeZoomMultiplePages();
    public void InvokeZoomOnePage();
    public void InvokeZoomOutPages();
    public void InvokeZoomPageWidth();
    public void InvokeZoomTwoPages();
The toolbar also can be hidden with ShowToolbar property of the StiPreviewControl

Thank you.
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Creating Own Toolbar

Post by jellis »

Thanks Edward,

I've downloaded the 2008.1 trial & got just about everything working.
Couple of bit's of odd behaviour though, not sure if they are bugs?

InvokeZoomOnePage actually shows 2 pages and InvokeZoomMultiplePages just show a blank screen? Any Ideas?

Also, If I turn on the thumbnails pane with InvokeThumbs, the pane appears, but no thumnails?

Regards,

Jon.

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Creating Own Toolbar

Post by Vital »

I've downloaded the 2008.1 trial & got just about everything working.
Couple of bit's of odd behaviour though, not sure if they are bugs?
InvokeZoomOnePage actually shows 2 pages and

It possible if two pages can placed in viewer space.
InvokeZoomMultiplePages just show a blank screen? Any Ideas?
We use special button for this function. You need release your own button. Please find attached code.
Also, If I turn on the thumbnails pane with InvokeThumbs, the pane appears, but no thumnails?
We have updated our code. Please call before this method, method BuildThumbs.

Thank you.
Attachments
47.Pack.ZIP
(5.36 KiB) Downloaded 171 times
Post Reply