2/27/2024 9:14 AM | |
Joined: 2/9/2006 Last visit: 3/8/2024 Posts: 129 Rating: (1) |
Hi, I have a similar problem. We have a PC with Windows 11, with WinCC 7.5 SP2 Update15. Previously the application ran under Windows 10. Now the included script no longer runs. According to the diagnosis in this line: Set objDLG = CreateObject("MsComDlg.CommonDialog") Is there a solution? 'Open common dialog For save config file Set objScreen = HMIRuntime.Screens(1) 'Set objDLG = objScreen.ScreenItems("CommonDialogControl") Set objDLG = CreateObject("MsComDlg.CommonDialog") If objDLG Is Nothing Then MsgBox("Cannot open file dialog. Microsoft Common Dialog Control is not available.") End If Set objStaticText1 = ScreenItems("ST_Historik_Konfiguration") objDLG.Filename = "" objDLG.Filter = objStaticText1.Text & " (*.ini)|*.ini" objDLG.DialogTitle = objStaticText1.Text & " - " & Item.Text objDLG.InitDir = strFolder objDLG.FilterIndex = 2 objDLG.MaxFileSize = 260 objDLG.CancelError = True objDLG.Flags = cdlOFNNoChangeDir Or cdlOFNHelpButton objDLG.ShowOpen strFilename = objDLG.Filename Set objDLG = Nothing ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 03/05/2024 11:17:56New subject after splitting |
|
Follow us on