Page 1 of 1

XLSReadWriteII5 does not compile in Console, Service, or ISA

Posted: Wed Sep 10, 2014 5:49 pm
by billegge
XLSReadWriteII5 does not compile in Console, Service, or ISAPI applications due to the compiler not finding the Graphics unit. This works ok in a VCL application but appears that in console apps you must preceded the unit name with "VCL.".

Please fix soon because my excel code is in a VCL, Console, and ISAPI DLL - currently I am only able to compile the VCL Desktop app and not the others preventing me to move on.


Sample that does not compile:

Code: Select all

program Project9;

{$APPTYPE CONSOLE}

{$R *.res}

uses
  System.SysUtils, XLSReadWriteII5;

begin
  try
    { TODO -oUser -cConsole Main : Insert code here }
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
end.

Re: XLSReadWriteII5 does not compile in Console, Service, or ISA

Posted: Wed Sep 10, 2014 6:14 pm
by billegge
FYI - If anyone else has this problem the workaround for it is to add VCL and VCL.Imaging to the Unit Scope Names of your project options.