DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

GDI error while deleting report sheet

Hi,

I am trying to delete a particular sheet in my report template using vbs script. But I am getting GDI error.

 

Part of code where it fails:

 

Report.Refresh

Error1 = Err.number & Err.Description

sheet_name = "test"

If Report.Sheets.Exists(sheet_name) then
     Report.Sheets.Remove(sheet_name)
End If

Report.refresh

Error2 = Err.number & Err.Description

 

Error1 ==> ""

Error2 ==> -2147418113(GDI+ Error) The method performed an arithmetic operation that produces a numeric overflow

 

Issue occurs when deleting a particular sheet. No issues if I delete some other sheets in the report.

regards,

Durai

 

0 Kudos
Message 1 of 1
(153 Views)