XLSReadWriteII5 does not compile in Console, Service, or ISA

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
billegge
Posts: 23
Joined: Fri Feb 08, 2008 8:34 pm

XLSReadWriteII5 does not compile in Console, Service, or ISA

Post 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.
billegge
Posts: 23
Joined: Fri Feb 08, 2008 8:34 pm

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

Post 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.
Post Reply