begin process at 2012 05 22 12:18:26
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Etats - Impressions

 > COMMENT EXPORTER UN RAPPORT CRYSTAL VERS DE DIFFÉRENTS FORMATS

COMMENT EXPORTER UN RAPPORT CRYSTAL VERS DE DIFFÉRENTS FORMATS


 Information sur la source

Note :
1 / 10 - par 1 personne
1,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Etats - Impressions Classé sous :crystalreport, crystal, report, exporter Niveau :Débutant Date de création :15/10/2004 Date de mise à jour :15/10/2004 14:23:20 Vu :14 632

Auteur : Mike Gagnon

Ecrire un message privé
Site perso
Commentaire sur cette source (1)
Ajouter un commentaire et/ou une note

 Description

Plusieurs applications utilisent Crystal Reports comme engin pour produire des états. Voici comment exporter depuis Visual FoxPro avec Crystal Reports vers des différents formats.

Source

  • oCRYSTAL = CREATEOBJECT('CrystalRuntime.Application')
  • oReport = oCRYSTAL.OpenReport('C:\employee.RPT')
  • oExport = oReport.ExportOptions()
  • oExport.DestinationType = 1 && To file
  • oExport.FormatType = 27 && Excel format
  • oExport.DiskFileName = "C:\employee.XLS" && Name of the file
  • oReport.Export(.F.) && Export without prompting
  • For the FormatType :
  • &&oExport.FormatType = 1 && Crystal Report
  • &&oExport.FormatType = 2 && Data Interchange
  • &&oExport.FormatType = 3 && Record Style
  • &&oExport.FormatType = 5 && Comma seperated values
  • &&oExport.FormatType = 6 && Tab seperated values
  • &&oExport.FormatType = 7 && Character seperated values
  • &&oExport.FormatType = 8 && Text
  • &&oExport.FormatType = 9 && Tab seperated text
  • &&oExport.FormatType = 10 && Paginated Text
  • &&oExport.FormatType = 11 && Lotus 123WKS
  • &&oExport.FormatType = 12 && Lotus 123WK1
  • &&oExport.FormatType = 13 && Lotus 123WK3
  • &&oExport.FormatType = 14 && Word for Windows
  • &&oExport.FormatType = 21 && Excel 5.0
  • &&oExport.FormatType = 22 && Excel 5.0 tabular
  • &&oExport.FormatType = 23 && ODBC
  • &&oExport.FormatType = 24 && HTML32 standard
  • &&oExport.FormatType = 25 && Explorer32 Extend
  • &&oExport.FormatType = 27 && Excel 7.0
  • &&oExport.FormatType = 28 && Excel 7.0 tabular
  • &&oExport.FormatType = 29 && Excel 8.0
  • &&oExport.FormatType = 30 && Excel 8.0 tabular
  • &&oExport.FormatType = 31 && Portable Document format (PDF)
  • &&oExport.FormatType = 32 && HTML40
  • &&oExport.FormatType = 33 && Crystal Report 7.0
  • &&oExport.FormatType = 34 && Report definition
  • &&oExport.FormatType = 35 && Exact Rich Text
  • &&oExport.FormatType = 36 && XML
oCRYSTAL = CREATEOBJECT('CrystalRuntime.Application')
oReport = oCRYSTAL.OpenReport('C:\employee.RPT')
oExport = oReport.ExportOptions()
oExport.DestinationType = 1 && To file
oExport.FormatType = 27 && Excel format
oExport.DiskFileName = "C:\employee.XLS" && Name of the file
oReport.Export(.F.) && Export without prompting

For the FormatType :

&&oExport.FormatType = 1 && Crystal Report

&&oExport.FormatType = 2 && Data Interchange

&&oExport.FormatType = 3 && Record Style

&&oExport.FormatType = 5 && Comma seperated values 

&&oExport.FormatType = 6 && Tab seperated values

&&oExport.FormatType = 7 && Character seperated values 

&&oExport.FormatType = 8 && Text

&&oExport.FormatType = 9 && Tab seperated text 

&&oExport.FormatType = 10 && Paginated Text

&&oExport.FormatType = 11 && Lotus 123WKS 

&&oExport.FormatType = 12 && Lotus 123WK1

&&oExport.FormatType = 13 && Lotus 123WK3 

&&oExport.FormatType = 14 && Word for Windows

&&oExport.FormatType = 21 && Excel 5.0

&&oExport.FormatType = 22 && Excel 5.0 tabular

&&oExport.FormatType = 23 && ODBC

&&oExport.FormatType = 24 && HTML32 standard

&&oExport.FormatType = 25 && Explorer32 Extend

&&oExport.FormatType = 27 && Excel 7.0

&&oExport.FormatType = 28 && Excel 7.0 tabular

&&oExport.FormatType = 29 && Excel 8.0

&&oExport.FormatType = 30 && Excel 8.0 tabular

&&oExport.FormatType = 31 && Portable Document format (PDF)

&&oExport.FormatType = 32 && HTML40

&&oExport.FormatType = 33 && Crystal Report 7.0

&&oExport.FormatType = 34 && Report definition 

&&oExport.FormatType = 35 && Exact Rich Text

&&oExport.FormatType = 36 && XML 



 Historique

15 octobre 2004 14:23:21 :
Ortho

 Sources du même auteur

COMMENT REMPLIR UN COURRIEL ET OUVRIR LE PROGRAMME PRET À PA...
COMMENT CRÉER UN DOCUMENT MHTML AVEC CDO
AJOUTER ET SUPPRIMER UNE ENTRÉ DANS LE REGISTRE DE WINDOWS ...
COMMENT PROTÉGER LES TABLES SANS UTILISER L'ENCRYPTAGE.
COMMENT DÉTERMINER SI UN DLL EST ENREGITRÉ SUR UN ORDINATEUR

 Sources de la même categorie

Source avec Zip Source avec une capture ETAT DYNAMIQUE par aumeric
Source avec Zip ORIENTATION IMPRIMATE MANUELLEMENT par jee0404
Source avec Zip UN CALENDRIER DANS UN ÉTAT par aumeric

 Sources en rapport avec celle ci

Source avec Zip Source avec une capture ETAT DYNAMIQUE par aumeric

Commentaires et avis

Commentaire de emaurille le 19/05/2010 11:58:41

Merci pour les informations. Mais est-ce qu'il est possible de faire un export vers une image de type PNG, JPG ou autres.
Merci pour l'aide.

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

exporter [ par mago1973 ] je veux exporter une table foxpro .dbf a une table dbase 3 ou 4 ou 5 et cela par programme fox pro erreur irrecupérable en impression [ par calenge ] J'ai développé une appli en VFP6 et j'ai régulièrement un plantage violent 'erreur irrécupérable' quand je veux édi impression de champs memo dans un "report form" [ par yj1 ] Quelqu'un peut-il me dire s'il est possible d'imprimer un champ memo dans un "repo form" et si oui comment ? je n'y suis pas arrivé ... merc * * * Valeur tronquer avec un REPORT TO FILE * * * [ par macra ] Bonjour,J'ai quelques difficultes d'affichage d'un report. J'ai une colonne qui contient un string , mais l'affichage ne se fait que sur 4 carateres q report [ par slimvir ] bonjour,comment faire appel a une fiche report report affichage [ par slimvir ] bonjour,comment faire appel a un report depuis un bouttons pour affichagemerci report [ par clement1988 ] Bonjour, je suis actuellement entrain de créer des reports pour faire des devis j'ai créé une liste de mes produits via des curseurs jusqu'ici tout va Nom du fichier image qui s'affiche sur un report [ par abdourasiz ] Salut à tous, J'ai un petit souci chers Doyens et collègues Programmeur VFP. j'ai réalisé en vfp6 et vfp8 des reports, à l'entête des états je veux fa


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,217 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales