DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

GraphSheetShow does not bring the Report page to the foreground

Solved!
Go to solution

Hello,

 

I have a script that works in Diadem 10.1 but not in 10.2.

 

The following script outputs 5 jpg's in 10.1 but repeats the first page in 10.2.

I can label the 5 jpg files correctly but it just copies the first page into the 4 other jpg's.

 

What adjustments are needed between versions.

 

Call GraphSheetInfos()                'Puts the number of sheets in GraphSheetCount
Dim intsheetNo

For intSheetNo = 1 To GraphSheetCount
  Call GraphSheetNGet(intSheetNo)     'Puts the sheet name in GraphSheetName
  Call GraphSheetShow(GraphSheetName) 'Shows the sheet in DIAdem REPORT
      If intsheetNo = 1 then
        If filex( filepath & T3 &"_"&GraphSheetName&".PNG") then

      Call MsgBoxDisp("Overwrite existing data?", "MB_YESNOCANCEL", "MsgTypeWarning",,,MsgNotModal)

              if msgstate = "IDNo" then 
              Call PathNameGet("Select a New Directory for Output", filepath)
              filepath = dlgoutputpath       
              else
              end if

            if msgstate = "IDCancel" then
            msgbox "Exiting programme"
            Call Cancel()
            else
            end if

         Else
         End If
      Else
      End if
 Call PICEXPORT( filepath & T3 &"_"&GraphSheetName&".BMP","BMP",1,768,1024,"RGB 24",100,"NoCompression",0) '...

Next
 

 

Thanks

 

Stagsden

0 Kudos
Message 1 of 3
(3,882 Views)

Hi Stagsden,

 

I created an example based on your posted code, and it seems to work both in DIAdem 11.1 Beta2 and in DIAdem 10.2.1.  Try my code on your computer and let me know what happens.  If it doesn't work, perhaps this was fixed in the 10.2.1 update.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

Message 2 of 3
(3,856 Views)
Solution
Accepted by Stagsden

Fixed with 10.2.1, 

Thanks

 

Stagsden

0 Kudos
Message 3 of 3
(3,843 Views)