I created DLL that uses Flexcel, but functions AutofitCol and AutofitRow causes error:
Error trying to create empty image of dimensions 1x1 and PixelFormat "2498570". Probably out of memory.
Any suggestions ?
I created DLL that uses Flexcel, but functions AutofitCol and AutofitRow causes error:
Hi,
Try calling FlexCelDllInit and FlexCelDllShutdown in the first and last lines of the method:
begin
try
FlexCelDllInit;
try
?
finally
FlexCelDllShutdown;
end
end;
Or you might want to initialize/shutdown the dll in the load/shutdown of the dll (GetExtensionVersion / TerminateExtension) There is an example on how to do it here:
http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=4781&KW=isapi&title=isapi-module-dll-runtime-error
And you can also take a look at the section "Using FlexCel inside a dll? in http://www.tmssoftware.biz/flexcel/docs/vcl/UsingFlexCelAPI.pdf
It works :) Thanks.