Free Support Forum - aspose.com

CompressionLevel property out of scope after 1.8 upgrade

After upgrading to 1.8, I receive the following error for a pdf that previously worked:

CompressionLevel property out of scope.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: CompressionLevel property out of scope.

Source Error:

Line 181: Public Sub Save(ByVal resp As HttpResponse) 
Line 182: If Not _bound Then Bind()
Line 183: _pdf.Save(resp)
Line 184: End Sub Line 185:

Source File: C:\Documents and Settings\scampbell\blabla\PDFWriter.vb Line: 183

Stack Trace:

[ApplicationException: CompressionLevel property out of scope.] 
Aspose.Pdf.Document.f.o(Int32 A_0) +137
Aspose.Pdf.Xml.l.a(Pdf A_0, HeaderFooter A_1, Text A_2, Cell A_3, a A_4, Boolean A_5, as A_6) +1556
Aspose.Pdf.Xml.ar.a(Pdf A_0, Section A_1, HeaderFooter A_2, Text A_3, Table A_4, Row A_5, Cell A_6, a A_7, Boolean A_8, as A_9) +2526
Aspose.Pdf.Xml.ar.a(Pdf A_0, Section A_1, HeaderFooter A_2, a A_3, Boolean A_4) +493
Aspose.Pdf.Xml.ar.b(Pdf A_0, Section A_1, HeaderFooter A_2, a A_3, Boolean A_4) +58
Aspose.Pdf.Xml.w.a(Pdf A_0, Section A_1, a A_2) +932
Aspose.Pdf.Xml.s.a(Pdf A_0) +428
Aspose.Pdf.Xml.i.a(d A_0, Pdf A_1) +185
Aspose.Pdf.Pdf.Save(HttpResponse response) +91

Dear SteveC,

Thank you for considering Aspose.

Sorry for this bug. Would you please send me a example which can reproduce this error? I will fix the bug soon.

In the latest hotfix, the error message has changed:

System.ArgumentException: Invalid size of text box in ShowBoxed method.
at Aspose.Pdf.PdfText.z.a(aa A_0, String A_1, Single A_2, Single A_3, Single A_4, Single A_5, String A_6, Boolean A_7, Single A_8, Int32 A_9)
at Aspose.Pdf.PdfText.aa.a(String A_0, Single A_1, Single A_2, Single A_3, Single A_4, String A_5, Boolean A_6, Single A_7, Int32 A_8)
at Aspose.Pdf.Xml.k.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, a A_6, w A_7)
at Aspose.Pdf.Xml.b.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, a A_6, w A_7, Boolean A_8)
at Aspose.Pdf.Xml.v.a(Pdf A_0, Section A_1, a A_2)
at Aspose.Pdf.Xml.ar.a(Pdf A_0)
at Aspose.Pdf.Xml.aa.a(a A_0, Pdf A_1)
at Aspose.Pdf.Pdf.Save(String pdfFile)
at AsposeBug.Form1.button1_Click(Object sender, EventArgs e) in c:\documents and settings\scampbell\my documents\visual studio projects\asposebug\asposebug\form1.cs:line 113

I will send the code to reproduce in a separate email…

Dear Steve,

Thanks for your help.

I will try to fix this bug ASAP.

Dear Steve,

Thank you for considering Aspose.

I have fixed this bug. Please download hot fix here.

BTW, if you modify your XML according to Border,margin and padding ,your report will look better.

Thanks, it works great. Thanks for the tip on borders too.