Hi there,
is it possible to export with the ExcelExporter to a given Excel template (.xlt)?
Thanks for any hint.
Regards,
Oliver
Hi Oliver,
Some overloads of the Export method take an enum and the enum includes template types if you have the latest version of the controls. I think templates were added in v10.2 or thereabouts.
If you don't see the enum options listed the you probably have an old version of the controls in which templates were not supported.
Hi,
thanks for your reply.
But, I don't exactly know what enums you mean, do you maybe have a short sample?
Btw, I use version 10.3
Thanks beforehand,
Your post says you are using the "ExcelExporter". I took that to mean the WinGridExcelExporter, in which case you would do this:
this.ultraGridExcelExporter1.Export(this.ultraGrid1, filename, Infragistics.Excel.WorkbookFormat.Excel97To2003Template);
If you are just creating a Workbook in code without a grid, you would do this:
Workbook wb = new Workbook(WorkbookFormat.Excel97To2003Template);
thanks a lot!
I highly appreciate this!
Many regards,