Error printing xlsx

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
CareAll
Posts: 28
Joined: Mon Jun 24, 2013 9:30 am

Error printing xlsx

Post by CareAll »

Hello,

I've created a simple xlsx file, but when I press print in Excel 2010 (or print preview in Excel 2007) the Excel stops responding.
I've sent the sample file to your e-mail address, please take a look at it.
Thanks

Tamas
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Error printing xlsx

Post by larsa »

Hello

I agree that your file gives the error. Please provide a code sample that produces the file.
Lars Arvidsson, Axolot Data
CareAll
Posts: 28
Joined: Mon Jun 24, 2013 9:30 am

Re: Error printing xlsx

Post by CareAll »

Hello Lars,

The code is just about opening and saving an xlsx file:

Code: Select all

  XLS := TXLSReadWriteII5.Create(nil);
  try
    XLS.Filename := 'Temp.xlsx';
    XLS.Read;
    XLS.Version := xvExcel2007;
    XLS.Filename := 'Out.xlsx';
    XLS.Write;
  finally
    FreeAndNil(XLS);
  end;
I sent the project to you in e-mail with the source and output Excel files.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Error printing xlsx

Post by larsa »

Hello

The file test.xlsx, was it not created with XLSReadWriteII?
Lars Arvidsson, Axolot Data
CareAll
Posts: 28
Joined: Mon Jun 24, 2013 9:30 am

Re: Error printing xlsx

Post by CareAll »

Hello Lars,

No, the original file was created with Excel 2010.
(Sample project resent.)
Post Reply