キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Excel Overwrite Question

I am using the Excel Report fp along with CVI 8.0.

 

How do I suppress the file overwrite prompt generated by excel when I initiate the following command ExcelRpt_WorkbookSave ?

 

I am first using a FileSelectPopup to prompt the user to create or select a file. If a file that already exists is selected, an overwrite prompt appears which must be selected.

This is ok.

 

However, when the ExcelRpt_WorkbookSave function is executed, excel will then launch another prompt on its own.. I need to suppress this second prompt.

 

Thanks

Diego

0 件の賞賛
メッセージ1/4
4,504件の閲覧回数
While I cannot say anything on the second message, the one on FileSelectPopup is only shown if you choose "Save" as the button label: either choosing "OK", "Select" or "Load" prevents from showing the confirmation message.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
メッセージ2/4
4,496件の閲覧回数

Roberto,

Good solution, thx.

 

I am still curious if there is a way to suppress the excel prompt.

 

Diego

0 件の賞賛
メッセージ3/4
4,484件の閲覧回数

I don't think there is a way to do it directly.

 

You may have to save the worksheet to a temporary file, delete the original file, then rename the temporary file to the original filename.

--
Martin
Certified CVI Developer
0 件の賞賛
メッセージ4/4
4,481件の閲覧回数