Hi William,
Hello Babar, do you have any valuable feedback from the development team that you have received over the past week since your last post here?
Hi William,
Thank you, Babar. Please keep me updated.
Hi William,
- CELLSNET-42528: Unfortunately, the current implementation of Aspose.Cells APIs do not support math equations as they are in your provided sample (json-test-1.xlsx). This is actually a new feature request that we may consider implementing in the future releases, but we first need to analyze it properly in order to bring it on our road map of Aspose.Cells APIs. Therefore we can not commit any timelines at the moment although the ticket is still open for further investigation.
- CELLSNET-42539: The exception stated in this ticket is due to the reason that Aspose.Cells APIs converts the spreadsheets, charts and shapes to EMF format, and inject these EMF images into the resultant PDF. On the other hand, Mono does not support creation of EMF files as we have researched it. You can workaround this situation by specifying the ImageFormat for the object of PdfSaveOptions while converting the spreadsheets to PDF format. Please check the below provided code snippet that we have tested against Mono versions 3.2.6 & 3.2.8 with MonoDevelop 4.0.12 and the latest version of Aspose.Cells for .NET 8.0.1.1.
var file = “/home/babar/Downloads/Tear_Sheet_values.xlsx”;
Workbook book = new Workbook(file);
Console.WriteLine(“Spreadsheet Loaded!”);
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
Console.WriteLine(“Spreadsheet Converted!”);
System.Drawing.Bitmap dummyBitmap = null; System.Drawing.Graphics dummyGfx = null; IntPtr hdc = IntPtr.Zero; System.Drawing.Imaging.Metafile metafile = null;
try { // Below code is needed to create a .NET Graphics object that can record a metafile. dummyBitmap = new System.Drawing.Bitmap(1, 1); dummyGfx = System.Drawing.Graphics.FromImage(dummyBitmap);
hdc = dummyGfx.GetHdc();
Console.WriteLine(hdc);
int mWidth = 200; int mHeight = 200;
metafile = new System.Drawing.Imaging.Metafile(fs, hdc, new System.Drawing.RectangleF(0, 0, mWidth, mHeight), System.Drawing.Imaging.MetafileFrameUnit.Pixel, System.Drawing.Imaging.EmfType.EmfPlusDual);
System.Drawing.Graphics mGr = System.Drawing.Graphics.FromImage(metafile); // Use FillRectangle instead of Clear because Clear does nto seem to work for metafiles. // FillRectangle also establishes good page boundaries for the metafile.
Console.WriteLine(mGr.VisibleClipBounds);
mGr.FillRectangle(new System.Drawing.SolidBrush(Color.Empty), 0, 0, mWidth, mHeight);
//Draws mGr.DrawString(" Test draw text!", new System.Drawing.Font("Arail", 8), new System.Drawing.SolidBrush(System.Drawing.Color.Red), 50, 10); mGr.DrawLine(new System.Drawing.Pen(Color.Blue, 3), 0, 100, 200, 100); mGr.FillRectangle(new System.Drawing.SolidBrush(Color.FromArgb(100, 255, 0, 0)), 50, 50, 100, 100); mGr.Dispose(); } finally { if (metafile != null) metafile.Dispose(); if (hdc != IntPtr.Zero) dummyGfx.ReleaseHdc(hdc); if (dummyGfx != null) dummyGfx.Dispose(); if (dummyBitmap != null) dummyBitmap.Dispose(); }
Hello, Babar. Thank you for your reply.
Hi William,
Hello Babar,
Hi William,
Hello, Babar. So far we haven’t been able to find anything on our side about the mono installation. Has your investigation uncovered anything? If it was our mono installation, how come version 8.0.0.1 worked but 8.0.1.1 crashed immediately?
Hi William,
Hello, Babar, I work with William and have been looking into this issue on our side.
Hi there,
Hi,
Hi there,
[New LWP 4525]
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/i386-linux-gnu/libthread_db.so.1”.
0xb7777424 in __kernel_vsyscall ()
Id Target Id Frame
2 Thread 0xb715fb40 (LWP 4525) “mono” 0xb7777424 in __kernel_vsyscall ()
* 1 Thread 0xb753f740 (LWP 4524) “mono” 0xb7777424 in __kernel_vsyscall ()
Thread 2 (Thread 0xb715fb40 (LWP 4525)):
#0 0xb7777424 in __kernel_vsyscall ()
#1 0xb76fd135 in sem_wait@@GLIBC_2.1 () at …/nptl/sysdeps/unix/sysv/linux/i386/i686/…/i486/sem_wait.S:79
#2 0x0827f8d6 in mono_sem_wait (sem=sem@entry=0x83c5058 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:119
#3 0x081f5573 in finalizer_thread (unused=unused@entry=0x0) at gc.c:1073
#4 0x081d6fd0 in start_wrapper_internal (data=0x87525b8) at threads.c:643
#5 start_wrapper (data=0x87525b8) at threads.c:688
#6 0x0827393f in thread_start_routine (args=args@entry=0x87017c4) at wthreads.c:294
#7 0x08283e53 in inner_start_thread (arg=0x87524c0) at mono-threads-posix.c:49
#8 0xb76f6f70 in start_thread (arg=0xb715fb40) at pthread_create.c:312
#9 0xb762d70e in clone () at …/sysdeps/unix/sysv/linux/i386/clone.S:129
Thread 1 (Thread 0xb753f740 (LWP 4524)):
#0 0xb7777424 in __kernel_vsyscall ()
#1 0xb76fecdb in waitpid () at …/sysdeps/unix/syscall-template.S:81
#2 0x08105bf1 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0xb7765b6c) at mini-exceptions.c:2299
#3 0x08153274 in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0xb7765b6c, fault_addr=0xbf755ebc, stack_ovf=stack_ovf@entry=0) at exceptions-x86.c:1163
#4 0x0806a20b in mono_sigsegv_signal_handler (_dummy=7, info=0xb7765aec, context=0xb7765b6c) at mini.c:6769
#5
#6 mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0xb7765d0c, fault_addr=0x0, stack_ovf=stack_ovf@entry=0) at exceptions-x86.c:1184
#7 0x0806a20b in mono_sigsegv_signal_handler (_dummy=11, info=0xb7765c8c, context=0xb7765d0c) at mini.c:6769
#8
#9 0xb7236175 in ?? ()
#10 0x00000000 in ?? ()
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
bash: line 1: 4524 Aborted (core dumped) /usr/bin/mono --debug “/home/babar/TestConsole/TestConsole/bin/Debug/TestConsole.exe”
Hello Babar, have you heard back from your development team about this issue?
Hi Bill,
Babar, please share the latest news on this ticket. We are still hoping for a fix soon so that we can begin using pdf generation without having to turn on debugging.
Hi Bill,
The issues you have found earlier (filed as CELLSNET-42635) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.