begin process at 2012 02 15 21:08:24
  Trouver un code source :
 
dans
 
Accueil > Forum > 

VB.NET et VB 2005

 > 

Divers

 > 

Aide & Documentation

 > 

urgent crystal


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

urgent crystal

jeudi 8 février 2007 à 13:15:09 | urgent crystal

adilos77

pour qu'un fichier crystal report soit sychronise avec les données d'une table je suis chq fois obligé d'ouvrir le fichier crystal et rafraichir on cliquant sur une icone d'eclat, alors si vous avez un programme en vb6 qui facilite la tache je serai tres reconnaissant et merci

vendredi 9 février 2007 à 09:53:32 | Re : urgent crystal

gaa179

J'utilise CR 8.5
Dans un form j'ai l'activeX CRViewer.
J'utilise la fonction suivante pour afficher différents états dans le formulaire:

Public Sub PrintFrm(ByVal ReportFile As String, WindowTitle As String, Optional RecordSelector As String, Optional PrintReport As Boolean = False, Optional ReportHeader As Boolean = False, Optional ExportEnable As Boolean = False, Optional ReportLandscape As Boolean = False)
On Error GoTo Err_Print
Dim crystal As New CRAXDDRT.Application
Dim Report As New CRAXDDRT.Report
Dim MyRsSubRep As New ADODB.Recordset
Dim StrSql As String

    Set Report = crystal.OpenReport(App.Path & "\Report\" & ReportFile & ".rpt")
    If ReportHeader Then Report.ReportTitle = WindowTitle
    'Sélection de l'imprimante
    If ReportFile = "Ticket" Then
        Report.SelectPrinter Printers(PrinterTicket).DriverName, Printers(PrinterTicket).DeviceName, Printers(PrinterTicket).Port
        Else
        Report.SelectPrinter Printers(PrinterA4).DriverName, Printers(PrinterA4).DeviceName, Printers(PrinterA4).Port
    End If
    If ReportLandscape Then Report.PaperOrientation = crLandscape
   
    If RecordSelector <> "" Then Report.RecordSelectionFormula = RecordSelector
    If PrintReport Then
            Report.ReadRecords 'Refresh
            Report.PrintOut False
        Else
            'FrmPrint.Show vbModal
            With FrmPrint.CRViewer1
                .ReportSource = Report
                .ViewReport 'SHOW REPORT
                Do While .IsBusy 'ZOOM METHOD DOES NOT WORK WHILE
                    DoEvents 'REPORT IS LOADING, SO WE MUST PAUSE
                Loop 'WHILE REPORT LOADS.
               
                'Modification affichage
                .Refresh
                .Zoom 1
                .Top = 0
                .Left = 0
                .Height = FrmPrint.ScaleHeight
                .Width = FrmPrint.ScaleWidth
                .DisplayTabs = False
                .DisplayGroupTree = False
                .EnableExportButton = ExportEnable
                .EnableGroupTree = False
                .DisplayBackgroundEdge = False
                '.EnableSearchControl = False
                .EnableNavigationControls = True
            End With
           
            With FrmPrint
                .Caption = WindowTitle
                .Show vbModal
                .Refresh
            End With
    End If
    Set crystal = Nothing
    Set Report = Nothing

Exit Sub

Err_Print:
    Set crystal = Nothing
    Set Report = Nothing
    MsgBox Err.Description, vbCritical + vbOKOnly, "Impression"
End Sub



Cette discussion est classée dans : fichier, crystal, urgent


Répondre à ce message

Sujets en rapport avec ce message

**URGENT** Comment savoir si l'utilisateur ouvre un certain fichier? **URGENT** [ par WebMagique ] J'aimerais savoir comment savoir(!) si l'utilisateur ouvre un certain fichier de windows... (ex.: "C:\windows\bureau\jeux")Je cherche à faire un progr URGENT ----- COMMENT APPELER UN FICHIER D'AIDE [ par Greg ] Bonjour je souhaite qu'acpartie de mon application en cliquant sur mon bouton appeller le fichier bob.hlpcomment fairemerci *URGENT* Programme & DLLs en 1 seul file [ par Jo Ace ] Je voudrais réunir mon programme et les DLL de VB en 1 seul fichier en faisant en sorte que quand on ouvre ce fichier mon programme se lance (donc for * URGENT * Ouvrir un fichier dans un frame ou autre qu'un formulaire... [ par Fred ] Ouvrir un fichier dans un frame ou autre qu'un formulaire...En fait mon problème c'est que je veux ouvrir un fichier dans un formulaire, mais il cache * URGENT * Ouvrir un fichier dans une zone définit... [ par Fred ] En fait mon problème c'est que je veux ouvrir un fichier dans un formulaire, mais il cache ma barre d'outils...Comment puis-je lui donner une zone spé Urgent *** Envoyer un fichier à la corbeille sans confiramtion [ par bruno b ] Hello. Pourriez vous m'indiquer le moyen d'envoyer un fichier à la corbeille sans avoir la boite de dialogue de confirmation. J'ai essayer la fonction URGENT : création fichier mdb [ par bunny ] bonjour,comment créé un fichier mdb (format access) sous vb ???merci URGENT FILENUMBER - FICHIER TXT [ par Koundelitch ] Je voudrais recuperer le filenumber d'un fichier txt ouvert par une applicationwindows.OULire un fichier txt sans preciser le filenumber (par une autr TRES URGENT : Crystal Report 8 [ par Marco ] J'ai un gros problème avec Crystal Report 8 :J'ai créé des états dans VB avec le composant Report Designer de Crystal Reportet je les visualise avec Très urgent (traitementde fichier texte) [ par Ataeallah ] Lorsque j'ouvre le fichier txt et je le stock dans une chaine de caractère je perd tout les virgules existant dans mon fichier texte.


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 6,786 sec (4)

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