J'essaie d'exporter un rapport Crystal dans un fichier texte, tout en préservant les caractères Unicode qui s'y trouvent. Par défaut, Crystal Reports semble exporter vers un fichier texte ANSI.Comment exporter un rapport Crystal dans un fichier texte Unicode?
est ici une version très simplifiée de ce que je fais:
Dim objCRReport As CRAXDRT.Report
[...]
objCRReport.ExportOptions.FormatType = 8 'crEFTText
objCRReport.ExportOptions.DestinationType = 1 'crEDTDiskFile
objCRReport.ExportOptions.DiskFileName = "C:\reportInTextFormat.txt"
objCRReport.Export blnPromptUser
Comme il crée un fichier au format ANSI, je perds des caractères spéciaux qui ont été trouvés dans le rapport. Ces caractères sont tous très bien lorsque vous affichez le rapport Crystal directement.
S'il vous plaît noter que je faisant référence au "Crystal Reports 9 ActiveX Designer Runtime Library" spécifiquement.
Votre deuxième lien est cassé. Il y a un "https //" redondant dedans. –
Merci, Mike. Corrigé –