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?
How Can I disappear the options of SAVE button?
Hello.
Thank you.
Please, look at the Stimulsoft.Report.StiOptions.Viewer.Windows.Exports class. You could do it with next code: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?
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;
How Can I disappear the options of SAVE button?
This is perfect! Thank you.
How Can I disappear the options of SAVE button?
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.
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?
Hello.
If you use StiViewerControl of the Form1 then you should write this code in the Form1 constructor before InitializeComponent() method.
Thank you.
You should out this code before initialisation of the control.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.
If you use StiViewerControl of the Form1 then you should write this code in the Form1 constructor before InitializeComponent() method.
Thank you.