Problems with Windows Service
Problems with Windows Service
Hi. I'm trying to convert multipage tifs into pdfs with OCR, but using a Windows Service. Using your example like in
post4070.html?hilit=tiff%20to%20searchable%20pdf#p4070.
It works fine in a windows forms application, but in a windows service, I get an error in the line
int ImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(tifFile);
The error message (in spanish) was "No se puede mostrar un cuadro de diálogo o formulario modal cuando la aplicación no está en modo UserInteractive. Especifique el estilo ServiceNotification o DefaultDesktopOnly para mostrar una notificación de una aplicación de servicio" . It seems that an error happens and GdPicture tries to show a Message Box, and that' is not allowed in a WS.
I'm using GdPicture.Net 8.5
Best regards.
post4070.html?hilit=tiff%20to%20searchable%20pdf#p4070.
It works fine in a windows forms application, but in a windows service, I get an error in the line
int ImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(tifFile);
The error message (in spanish) was "No se puede mostrar un cuadro de diálogo o formulario modal cuando la aplicación no está en modo UserInteractive. Especifique el estilo ServiceNotification o DefaultDesktopOnly para mostrar una notificación de una aplicación de servicio" . It seems that an error happens and GdPicture tries to show a Message Box, and that' is not allowed in a WS.
I'm using GdPicture.Net 8.5
Best regards.
Re: Problems with Windows Service
Ola!
You have to check 3 points:
1- You are using the latest available version
2- You have correctly unlocked the SDK before calling this line (the message box can be the unlocked SDK alert)
3 - tifFile do not contains an empty string.
Hope this helps!
Kind regards,
Loïc
You have to check 3 points:
1- You are using the latest available version
2- You have correctly unlocked the SDK before calling this line (the message box can be the unlocked SDK alert)
3 - tifFile do not contains an empty string.
Hope this helps!
Kind regards,
Loïc
Re: Problems with Windows Service
Hi Loïc:
Awfully sorry. It was a wrong licence serial. It works fine now.
Best regards.
Awfully sorry. It was a wrong licence serial. It works fine now.
Best regards.
Re: Problems with Windows Service
No problem!
Thank you for the return.
Regards,
Loïc
Thank you for the return.
Regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests