Delphi-PRAXiS
Seite 1 von 3  1 23      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Crystal Reports VCL XI und Delphi 2009 (https://www.delphipraxis.net/120819-crystal-reports-vcl-xi-und-delphi-2009-a.html)

Samashy 17. Sep 2008 08:08


Crystal Reports VCL XI und Delphi 2009
 
Hallo Ihr Lieben,

habe heute Delphi 2009 installiert und stehe nun vor einem mittelschweren Problem...
Die VCL von CR läuft nicht mehr. :roll: Die UCrpe32 kann nicht kompiliert werden.

Delphi-Quellcode:
...
  case ReportOptions.convertDateTimeType of
    PE_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := ToString;  
    PE_RPTOPT_CVTDATETIMETODATE: FConvertDateTimeType := ToDate;
    PE_RPTOPT_KEEPDATETIMETYPE : FConvertDateTimeType := ToDateTime;
    else
      FConvertDateTimeType := ToDateTime;
  end;
...
PE_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := ToString;
Fehler: Inkompatible Typen: 'TCrDateTimeType' und 'string' :gruebel:

Hat jemand einen Rat für mich?

Danke, Romy

Bernhard Geyer 17. Sep 2008 08:18

Re: Crystal Reports VCL XI und Delphi 2009
 
Was steckt hinter TCrDateTimeType?

Samashy 17. Sep 2008 08:48

Re: Crystal Reports VCL XI und Delphi 2009
 
Delphi-Quellcode:
TCrDateTimeType = (ToString, ToDate, ToDateTime);

DeddyH 17. Sep 2008 08:51

Re: Crystal Reports VCL XI und Delphi 2009
 
Und FConvertDateTimeType ist vom Typ TCrDateTimeType?

Bernhard Geyer 17. Sep 2008 08:51

Re: Crystal Reports VCL XI und Delphi 2009
 
TObject hat jetzt eine ToString-Methode und diese versucht der Compiler zu ziehen.

Schreib mal:

Delphi-Quellcode:
E_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := TCrDateTimeType.ToString;

Samashy 17. Sep 2008 08:57

Re: Crystal Reports VCL XI und Delphi 2009
 
Vielen Dank!!! Das hat funktioniert.
Gibt es eine Übersicht über diese Funktionen?
Haben nämlich schon ein neues Problem in der Pas QRExpr (von QuickReport)

Delphi-Quellcode:
if result.Kind = resDouble then
    begin
      if DecimalSeparator <> '.' then
      begin
        while pos('.', aString) > 0 do
          aString[pos('.', aString)] := DecimalSeparator;
      end;
      try
        result.dblResult := StrToFloat(aString);
      except
        result := ErrorCreate(Format(SqrExpIllegalCharInNumeric, [aString]))
      end;
    end;
aString[pos('.', aString)] := DecimalSeparator;
Inkompatible Typen: 'AnsiChar' und 'Char'

Dafür sollte ich wohl besser einen neuen Thread eröffnen, da es ja nicht zu Crystal gehört.

Romy

Bernhard Geyer 17. Sep 2008 09:06

Re: Crystal Reports VCL XI und Delphi 2009
 
Zitat:

Zitat von Samashy
Vielen Dank!!! Das hat funktioniert.
Gibt es eine Übersicht über diese Funktionen?

Online-Hilfe? Und auf dn.codegear.com gibt es auch genug zu lesen bezüglich neuigkeiten D2007 und Unicode-Umstellung.

Zitat:

Zitat von Samashy
Haben nämlich schon ein neues Problem in der Pas QRExpr (von QuickReport)
...aString[pos('.', aString)] := DecimalSeparator;
Inkompatible Typen: 'AnsiChar' und 'Char'

Als was ist aString definiert?

Gibt nicht evtl. schon ein D2009-Update von CR?

Samashy 17. Sep 2008 09:17

Re: Crystal Reports VCL XI und Delphi 2009
 
Zitat:

Online-Hilfe? Und auf dn.codegear.com gibt es auch genug zu lesen bezüglich neuigkeiten D2007 und Unicode-Umstellung.
Das ist auch noch ein Problem. Die OnlineHilfe geht auch nicht... aber damit muss ich mich später befassen.

Zitat:

Als was ist aString definiert?
Delphi-Quellcode:
aString : string[255];

Zitat:

Zitat von Bernhard Geyer
Gibt nicht evtl. schon ein D2009-Update von CR?

Leider nein. Sieht auch nicht so aus, als wenn es da eine in naher Zukunft gibt. Ich habe fast 90% meiner Reports mit CR erstellt. Ist für mich der beste ReportDesigner.

Romy

Bernhard Geyer 17. Sep 2008 09:58

Re: Crystal Reports VCL XI und Delphi 2009
 
Zitat:

Zitat von Samashy
Delphi-Quellcode:
aString : string[255];

Muß es ein kurzer String sein? diese bleiben nämlich Ansi-String.
geht auch
Delphi-Quellcode:
aString: String
...
SetLength(aString, 255);

Samashy 17. Sep 2008 10:17

Re: Crystal Reports VCL XI und Delphi 2009
 
Du hast mir sehr geholfen! Hab vielen Dank.
Ich habe mir die Erläuterung zu Ansi und Unicode runtergeladen...
und wurschtel mich da jetzt durch. Mein Programm funktioniert erst mal.

Also nochmal Danke!

Romy


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:20 Uhr.
Seite 1 von 3  1 23      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz