hexagon logo

Report preview window, I don't want it!

Good morning all,

I'm attempting to make an operator dashboard using excel as the back end and driven through VBA. Pulls down a program from the server, copies it local, executes through PC-Dmis, prints pdf & hard copy... blah blah blah...

The idea behind this automation is to circumvent running through the operator mode where the floor staff has the opportunity to re-qualify probes, interrupt runs and in any other conceivable manner waste time. It's going well except for one small problem, the report preview. Ideally the only thing visible during the brief execution, aside from the pc-dmis "frame" would be the graphics display window (CadWindow). However the only thing visible instead is the report window (report preview, whatever). I've successfully hid the EditWindow and made the CadWindows visible by code, however can't find anything that controls the on screen report preview. According to the "PC-Dmis Basic Language Reference" the report mode should be controlled through the EditWindow, however hiding it only gets rid of the command window. Anyone have any insight? Perhaps a snippet of code? Many thanks!

CAD++ ver 2010 MR3
Parents
  • If there's a program open in PcDmis then...
    Sub ToggleReportWindow()
         Dim oApp as PCDLRN.Application
         Set oApp = CreateObject("PCDLRN.Application")
         oApp.ActivePartProgram.ReportWindow.Visible = False
         Set oApp = Nothing
    End Sub


    This is working for me in 2015.1 using Excel 2010. Too bad v2010 isn't cooperating. You could always use AutoIt (a pretty handy utility).
Reply
  • If there's a program open in PcDmis then...
    Sub ToggleReportWindow()
         Dim oApp as PCDLRN.Application
         Set oApp = CreateObject("PCDLRN.Application")
         oApp.ActivePartProgram.ReportWindow.Visible = False
         Set oApp = Nothing
    End Sub


    This is working for me in 2015.1 using Excel 2010. Too bad v2010 isn't cooperating. You could always use AutoIt (a pretty handy utility).
Children
No Data