Hi Kashif,
Here is the exception message and stack trace while opening file using SpreadsheetGear:
Msg [Corrupt OpenXML document.] Stack trace below:
at ?.?()
at ?.?(? A_0)
at ?.?.?()
at ?.?(? A_0)
at ?.?(? A_0, Int32 A_1)
at ?.?.?(? A_0, Int32 A_1)
at ?.?.?.?.?()
at ?.?(? A_0)
at ?.?(String A_0, ? A_1)
at ?.?(? A_0)
at ?.?.?.?(? A_0, ? A_1)
at ?.?.?.?.?.?()
at ?.?(? A_0)
at ?.?.?.?.?(? A_0, ? A_1, ? A_2)
at ?.?(? A_0)
at ?.?(String A_0, ? A_1)
at ?.?(String A_0, String A_1, ? A_2)
at ?.?.?()
at ?.?(? A_0)
at ?.?(? A_0)
at ?.?.?()
at ?.?(? A_0)
at ?.?(String A_0, ? A_1)
at ?.?(String A_0, String A_1, ? A_2)
at ?.?(? A_0)
at ?..ctor(? A_0, String A_1, Boolean A_2, ? A_3, ? A_4, ? A_5, ? A_6, Stream
A_7, Boolean A_8)
at ?.?(? A_0, String A_1, Boolean A_2)
at ?.?.?(? A_0, String A_1, Boolean A_2)
at ?.?.?(String A_0, Boolean A_1, Stream A_2)
at ?.?.Open(String filename)
Hope this helps, you diagnosing the issue.
Cheers, Bhavin