Error in GDI+: 18 (Gdiplus Not Initialized)

Hello,


I am getting the following error when trying to open an excel spreadsheet:
Error in GDI+: 18 (Gdiplus Not Initialized)

Flexcel VCL 

The spreadsheet contains and image and I would assume this is causing the problem.

Regards,
Hi,
Are you getting this error in a normal VCL app or in an Intraweb or ISAPI app?

If you are not in a VCL app, you need to initialized GDI+. Take a look at:

http://www.tmssoftware.biz/flexcel/doc/vcl/guides/api-developer-guide.html#using-flexcel-inside-a-dll

and
http:////www.tmssoftware.com/site/forum/forum_posts.asp?TID=4781&title=isapi-module-dll-runtime-error

Hello Adrian,


The app is running as a service and the functionality is embedded in a standalone DLL, so service calls DLL.  Will have a look at the URLs provided.

Thanks

Hello Adrian,


I have included the FlexCelDllInit and FlexCelDllShutdown and it has resolved the problem.

Regards,

Great, thanks for letting me know