I never had this issue beofre and have been using manager for a good year now, today I tried to print my invoices as PDF and received this error:
Apitron.PDF.Kit.ErrorHandling.DocumentSaveException: Apitron.PDF.Kit.ErrorHandling.DocumentSaveException: Exception of type ‘Apitron.PDF.Kit.ErrorHandling.DocumentSaveException’ was thrown.
at Apitron.PDF.Kit.FlowDocument.Write(Stream outputStream, ResourceManager resourceManager, PageBoundary boundary, PdfStandard pdfStandard)
at ManagerServer.PdfConverter.ConvertHtmlToPdf(String input, Stream output, PageBoundary pageBoundary)
at ManagerServer.HttpHandlers.Businesses.Business.Email.Post()
No i did not touch the theme at all and haven’t been using manager.io for 2.5 months.
I m going to downoad these 3 to see if this helps Apitron - Downloads
your error is related to your pdf software and not Manager which is beyond the scope of this forum. if you are receiving any error when using the PDF button in Manager you can get help in the forum.
You did not answer my question about whether you are using a custom theme. Errors like this are often related to a problem with a custom theme. Sometimes, there is a character the PDF generator cannot handle. Sometimes there are variable attributes the program does not support.
If you are using a custom theme, try with the default theme and see if the problem persists.
i am using latest version 17.9.17 and i cannot reproduce your problem. the PDF button and Email button works perfectly.
like i said the error message you receive clearly says Apitron.PDF.Kit.ErrorHandling which is an error caused by the Apitron software.
post screenshots of the steps you are following if you are getting the error when using the PDF and Email buttons. also, post a screenshot of your email settings.
Could you please let me know how manager produces the PDF, I thought it was using the Apriton .net library. If not then what software shall I download to get the pdf to print properly(as you said this is a pdf problem and not a manager problem).
Yes this is what I thought and the Apitron.PDF.Kit must be the library used in manager to generate the PDF.
Apart from a custom theme, what else could cause this library to fail generating a PDF, any idea please?
I am a php developer, not .net unfortunately.
Would manager.io creates some kind of error log anywhere? Or WOuld this .net library post a log in windows when failing?
what was the previous version of Manager you upgraded from? was the internal pdf generator working on your old version?
try installing Manager again, choose the repair option from the installer and check if the problem persists.
check any registry errors and clear the windows cache.
Ok, I did what you told me to do, restarted the computer and now get this when I start manager.io
An empty browser that shows this:
Error: Secret token in cookies invalid (xxxxxx-4df3-41d2-xxxxx-bb61axxxxxx99),
Then a microsoft.net error showing this:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object.
Object name: ‘System.Net.HttpListener’.
at System.Net.HttpListener.CheckDisposed()
at System.Net.HttpListener.Stop()
at ManagerDesktop.Form.<>c__DisplayClass1_0.b__13(Object , EventArgs )
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at Eto.PropertyStore.TriggerEvent[T](Object key, Object sender, T args) at Eto.Forms.Window.OnClosed(EventArgs e) at Eto.Platform.Invoke(Action action) at Eto.WinForms.Forms.WindowHandler3.b__8(Object sender, FormClosedEventArgs e)
at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I will check online to check what this System.Net.HttpListener does.
As I said in my earlier post, the error you are seeing has previously been related to non-standard characters and font attributes the PDF generator cannot handle. These have sometimes been related to language preference. What language are you operating in? If not English, does the problem persist if you switch to English?
Thanks for the reply.
I use English UK as the OS language.
I tried to remove the latest .net framework + the 3.5 and reinstalled them, repaired manager.io and then uninstalled it(took backups of course), same problem.
Now I am going to see if there is a way to revert the original windows fonts as my design software imported some. This is a bit of a pain because it will be either I use the design software or manager.io, but need both…ouch, will let you know if I can come back to the original windows 10 fonts to see if this solve the error.