Page 1 of 1

How Can I disappear the options of SAVE button?

Posted: Thu Feb 02, 2012 2:31 am
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.

How Can I disappear the options of SAVE button?

Posted: Fri Feb 03, 2012 2:27 am
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.

How Can I disappear the options of SAVE button?

Posted: Fri Feb 03, 2012 3:40 am
by nathanma
This is perfect! Thank you.

How Can I disappear the options of SAVE button?

Posted: Fri Feb 03, 2012 4:24 am
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.

How Can I disappear the options of SAVE button?

Posted: Mon Feb 06, 2012 2:31 am
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.