modify with code the path of the file save in preview

how to modify with code the path of the file when pressing the button to save in preview ?

with c#

Agustin

Thank you

Comments

  • Hello!

    There are two ways to change the file save path from the preview window (PreviewControl) in WinForms:

    The initial directory for the save dialogue (SaveInitialDirectory):

    Config.PreviewSettings.SaveInitialDirectory = @‘C:\Reports\Exports’;
    // or on a specific control:
    previewControl1.SaveInitialDirectory = @‘C:\Reports\Exports’;
    

    Full interception and modification of the file name/path (CustomSaveDialog / CustomSaveReport): subscribe to the Config.DesignerSettings / EnvironmentSettings events: CustomSaveDialog and CustomSaveReport allow you to programmatically override the file name or folder, or intercept the save operation entirely.

This discussion has been closed.