In LL20, we took the first steps towards enabling this feature. However, the solution presented then didn't work for a detached preview, i.e. it required an active database connection and wasn't enabled in the stand alone viewer. We still heard the request to enable exporting to all of the formats from the preview loud and clear.
In LL24, we'll come up with a solution to this request. While it's still not possible to convert the EMF to any of the other supported export formats we're using a multi pass approach to embed the required export results writing to the preview.
From the coding side, embedding export formats is easy:
LL.Core.LlSetOptionString(LlOptionString.EmbeddedExportFormats, "PDF;XLS;DOCX;XHTML");
For the end user, the process is quite straightforward: simply click on the export icon in the ribbon and choose from one of the embedded formats: One of the most useful applications of this feature is embedding the raw data for the report as a data-only Excel sheet for further post-processing. This is a typical best-of-both-worlds approach. To do so, the required code would simply be:
LL.ExportOptions.Add(LlExportOption.ExportOnlyTableData, "1"); LL.Core.LlSetOptionString(LlOptionString.EmbeddedExportFormats, "XLS");
PreviewFile pf = new PreviewFile(@"c:\Reports\Preview.ll"); pf.ConvertTo(@"c:\Data\data.xlsx"); pf.Close();
Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.