How Can I disappear the options of SAVE button?

Сonversation on different topics
Post Reply
nathanma
Posts: 7
Joined: Wed Feb 01, 2012 6:10 am

How Can I disappear the options of SAVE button?

Post by nathanma »

hi,

How can I disappear the options of SAVE button from my application with Stimulsoft Report.Net? There are many options, such as Document File...,Adobe Pdf File...,HTML File... and so on. But I just want to release one or two options from SAVE.

Is that possible do that?

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How Can I disappear the options of SAVE button?

Post by HighAley »

Hello.
nathanma wrote:How can I disappear the options of SAVE button from my application with Stimulsoft Report.Net? There are many options, such as Document File...,Adobe Pdf File...,HTML File... and so on. But I just want to release one or two options from SAVE.

Is that possible do that?
Please, look at the Stimulsoft.Report.StiOptions.Viewer.Windows.Exports class. You could do it with next code:

Code: Select all

StiOptions.Viewer.Windows.Exports.ShowTiff = false;
StiOptions.Viewer.Windows.Exports.ShowPdf = false;
StiOptions.Viewer.Windows.Exports.ShowHtml = false;
StiOptions.Viewer.Windows.Exports.ShowMht = false;
Thank you.
nathanma
Posts: 7
Joined: Wed Feb 01, 2012 6:10 am

How Can I disappear the options of SAVE button?

Post by nathanma »

This is perfect! Thank you.
nathanma
Posts: 7
Joined: Wed Feb 01, 2012 6:10 am

How Can I disappear the options of SAVE button?

Post by nathanma »

hi, Aleksey Andreyanov,

Thank you for your help, but where I have to put this code?

private void Form1_Load(object sender, EventArgs e)
{
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowCsv = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowDbf = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowDif = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowExcelXml = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowHtml = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowHtml5 = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowMetafile = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowJpeg = false;
}

I did it like that, but nothing happened.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How Can I disappear the options of SAVE button?

Post by HighAley »

Hello.
nathanma wrote:Thank you for your help, but where I have to put this code?

private void Form1_Load(object sender, EventArgs e)
{
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowCsv = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowDbf = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowDif = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowExcelXml = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowHtml = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowHtml5 = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowMetafile = false;
Stimulsoft.Report.StiOptions.Viewer.Windows.Exports.ShowJpeg = false;
}

I did it like that, but nothing happened.
You should out this code before initialisation of the control.

If you use StiViewerControl of the Form1 then you should write this code in the Form1 constructor before InitializeComponent() method.

Thank you.
Post Reply