Page 1 of 1

Remove Exporting Formats

Posted: Thu Aug 30, 2007 8:53 am
by satisht
How should I remove the exporting formats which I have not required from preview window toolbar ?

Remove Exporting Formats

Posted: Thu Aug 30, 2007 9:43 am
by Edward
Please see the following topic:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=620

All that you need is add the following line:

Code: Select all

btnExport.Visible = False
Thank you.

Remove Exporting Formats

Posted: Thu Aug 30, 2007 11:07 pm
by satisht
No I dont want to remove exporting feature, just I want to remove some of the formats of the Eporting like Html,Exel, How should I do this?

Remove Exporting Formats

Posted: Fri Aug 31, 2007 7:53 am
by Edward
Please use the following code:

Code: Select all

    Dim service As StiService
    For Each service In StiConfig.Services.GetServices(GetType(StiExportService))
        If (TypeOf service Is StiPdfExportService OrElse TypeOf service Is StiHtmlExportService) Then
            service.ServiceEnabled = False
        End If
    Next
Thank you.

Remove Exporting Formats

Posted: Sat Sep 01, 2007 12:23 am
by satisht
Thank You.