Remove Exporting Formats

Stimulsoft Reports.NET discussion
Post Reply
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Remove Exporting Formats

Post by satisht »

How should I remove the exporting formats which I have not required from preview window toolbar ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Remove Exporting Formats

Post 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.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Remove Exporting Formats

Post 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?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Remove Exporting Formats

Post 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.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Remove Exporting Formats

Post by satisht »

Thank You.
Post Reply