C1PrintDocument C1PrintPreviewControl ExportOptions XlsExport Issue

Posted by: sebastian-jn.k on 14 April 2022, 3:22 am EST

    • Post Options:
    • Link

    Posted 14 April 2022, 3:22 am EST

    dll versions: 4.5.20212.513

    Hello,

    we created a c1PrintDocument with mixed content like text and tables.

    Over the c1PrintPreviewControl the user can export to excel( xls and xlsx).

    Unfortunately the result of the exported document with default settings is not usable.

    The solution is to set the option “FixedPositioning” to true in the OptionsForm.

    But is it possible to manually set the exporter options without showing the OptionsForm?

    We don’t want to show the options to the user.

    Our goal:

    this.c1PrintPreviewControl1.ExportOptions[“XlsExportProvider”].ShowOptions = false;

    -but FixedPositioning = true

    greetings from germanyC1PrintPreviewC1DocumentExportProblem.zip

  • Posted 18 April 2022, 12:32 am EST

    Hi,

    If you want to set the options on the Export options dialog form without showing the form, you can easily create your own ExportProvider by inheriting the required ExportProvider and registering it in the available ExportProviders. Then, you can override its NewExporter method to customize the Exporter that contains all the properties available on the options dialog form. Kindly refer to the updated sample showing the same

    Best Regards,

    Kartik

    C1PrintPreviewC1DocumentExportProblem_Updated.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels