Save As... versus Save
Turntwo
Folsom, CA
Is there anyway to tell if the user selected Save As... versus Save when using a CustomSaveDialog? If the user is editing an existing report, I'd like Save to produce a dialog with the existing values filled in (key, description, etc.), whereas for a Save As... I'd like to have the key value and description blank and the key value editable. I couldn't find a way to know the difference in the CustomSaveDialog event.
Thanks.
Thanks.
Comments
The difference is that when you save an existing report, the Save dialog is not displayed. When you save a new (untitled) report, or do Save As, you will see the dialog.
1. Is there a way to use e.Data and still have the Save function as you describe.
2. Is there a way to tell the Designer that it is an existing report when it is first loaded? I am loading it from the database, then calling for the Designer using report.Design. Since it is an existing report, it would be nice if the Save acted like it does after the first Save. Then I could use the SaveDialog as a save as, and not worry about them changing the key when trying to save an existing report.
Thanks.
1) I will fix this behavior in the monday's daily build.
2) Load the report and set its FileName property: