Print Page | Close Window

D2007 v11 quickPdf

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2995
Printed Date: 03 May 24 at 4:50AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: D2007 v11 quickPdf
Posted By: alexc
Subject: D2007 v11 quickPdf
Date Posted: 30 Oct 14 at 2:14PM
Hi All

I just installed quick PDF v11 against D2007. 

I had an already existing project, and changed what was needed to get all to compile

Except:
[DCC Error] uPDFGeneratorController.pas(23): F2051 Unit DebenuPDFLibrary1112 was compiled with a different version of Classes.TStream


I admit have: 
1) CodeGear™ Delphi® 2007 for Win32®  Version 11.0.2902.10471 
(i am not sure if it is D2007 R2 or not) 

2) I am using a trial version of Quick PDF, so I am using DCU's from D2006
- this really does not sound good to me, classes.pas changes normally with every update/version

3) I do not know if I have installed all Delphi 2007 updates and if the D2006 DCU's will work anymore
My Delphi has the "December 2007 Update" installed and I do not recall installing that two weeks ago. 
I suspect therefore I have a D2007 R2 install. 

4) I have the following products installed. 
IDE Fix Pack 2007 4.3
HTMLTidy copyright (c) 1998-2003 (W3C) MIT, INRIA, Keio University
CodeGear Quality Insite™ 
Borland® Together® 


So what do the quickPDF trial DCU's for D2006 compile against? 

for example D2007 no updates, with updates.. and so on. 

This will all be useful so I can ask the man who looks after our Delphi installs. 

Thanks in advance

Alex


by the way:

The reason for the evaluation is that we have quickPDF 7.24 

No one noticed at first that  SetFormFieldValueByTitle resolves to some code that translates code pages incorrectly. I can re-write the code, but we have a standards board that says 3rd party code should be unaltered. 

see
QuickPDFUnicode;
function QPLUnicodeConvert8To16(const Input: AnsiString; var Output: WideString;
  InputEncoding, OutputEncoding: TQPLUnicodeEncoding;
  BOMAction: TQPLUnicodeBOM;
  MalformedAction: TQPLUnicodeMalformed): Boolean;
then 
case InputEncoding of
       QPLUnicodeUTF8:
        begin
          IB1 := Byte(Input[InputPosition]);
          case IB1 of
            $00..$7F:
          begin
              // Single byte US-ASCII
              CodePoint := IB1;
              Inc(InputPosition);
            end;

(arrgh)



Replies:
Posted By: AndrewC
Date Posted: 03 Nov 14 at 12:48PM
Alexc,

If you are using D2007 then you need to use the DCU's for the D2007 version and not the D2006 version.  That could explain the reason for your error message.

Andrew



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk