IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Discussion :

exporter du texte dans word


Sujet :

Windows

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Janvier 2008
    Messages : 2
    Points : 2
    Points
    2
    Par défaut exporter du texte dans word
    Bonjour,
    j'utilise actuellement un logiciel de médecine nommé efilm.
    Ce logiciel n'est pas complet.Un bouton dans le logiciel permet de cr&éer un rapport a condition de créer la DLL pour cela.
    Je voudrais que lorsque je clique sur ce bouton, les données d'un patient soient transférées dans un fichier .doc.
    Il faudrait qu'un nouveau fichier soit créé a chaque fois et qu'il se sauvegarde automatiquement sans m'ouvrir une fenetre word.
    Voici les renseignements qui sont donnés par les développeurs du site pour créer cette DLL:

    The eFilm HIS-RIS Connectivity SDK provides the third-party developer with 1)
    a means to write interfaces, enabling eFilm to connect to a variety of HIS/RIS systems and 2) a means to control eFilm through Automation. These initial SDK releases are alpha releases and should be treated as such. As with any SDK specification, this SDK will undoubtedly change as requirements change. Over time, the hope is that this SDK will evolve into a robust means of achieving true PACS/HIS/RIS integration.




    At present, a HIS-RIS interface takes the form of a DLL (Dynamic Link Libraries). The DLL essentially acts as a mediator between eFilm and a given HIS/RIS, allowing the two to communicate. Because the interface is the same irrespective of which HIS/RIS the it is written for, eFilm sees all such systems as being the same; it is essentially “device independent.” In some sense, the plug-in may be thought of as a “driver.”

    It is likely that at some point in the future, COM (Component Object Model) technology will be adopted as an alternative to a simple DLL. COM’s ability to adapt to changing interfaces will likely lend itself well to the inevitable changes that the API will undergo.


    The sample project (eFilmHISRISInterface) included in this distribution illustrates how to build a HIS-RIS interface for eFilm. It assumes you are:

     Using Microsoft Visual C++
     Using MFC (Microsoft Foundation Classes)
     Familiar with C/C++ and the concept of DLLs

    You can use the project as a template – just replace the message box code in the functions in ExportFunctions.cpp with your own code, adding whatever other classes you need to the project.

    Note that you don’t have to use the sample project as a template. If you are not using VC++, or not using MFC, you can still build an interface DLL. As long as the DLL conforms to the API specified below, it should work.

    If you’re not using the sample project as a template, there are a couple of things to note:

     C, not C++, declarations are used for all functions.
     Remember to explicitly export each function. In VC++, explicit exports are found in the .def file.

    Once built, the DLL may be renamed to anything you like; the name does not matter.

    To install the DLL, set the path to it in the HIS/RIS Interface tab in Edit|Properties.



    Voici les informations données dans l'un des fichiers .cpp pour la création de la DLL:

    Note!
    //
    // If this DLL is dynamically linked against the MFC
    // DLLs, any functions exported from this DLL which
    // call into MFC must have the AFX_MANAGE_STATE macro
    // added at the very beginning of the function.
    //
    // For example:
    //
    // extern "C" BOOL PASCAL EXPORT ExportedFunction()
    // {
    // AFX_MANAGE_STATE(AfxGetStaticModuleState());
    // // normal function body here
    // }
    //
    // It is very important that this macro appear in each
    // function, prior to any calls into MFC. This means that
    // it must appear as the first statement within the
    // function, even before any object variable declarations
    // as their constructors may generate calls into the MFC
    // DLL.
    //
    // Please see MFC Technical Notes 33 and 58 for additional
    // details.



    Voila, je voudrais donc avoir quelques renseignements pour savoir ce que vous me conseillez d'utiliser a savoir que je ne travaille pas sous visual basic mais sous code blocks.
    J'aimerais savoir si je dois apprendre les notions de COM et de OLE
    ou s'il existerait un tutoriel pour apprendre a créer ce genre de programme.
    Je ne sais pas du tout vers quoi me tourner pour réaliser ce projet ais je suis pret a apprendre ce qu'il faudra.
    Votre aide me sera donc tres précieuse.


    Merci d'avance.

  2. #2
    Expert éminent sénior
    Avatar de Médinoc
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 369
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 369
    Points : 41 519
    Points
    41 519
    Par défaut
    Les fichiers .cpp fournis sont inutiles, car ils supposent que tu utilises MFC.

    Et pour l'instant, je pense qu'il n'est pas encore nécessaire de penser à COM, puisque le texte dit que pour l'instant l'application n'en a pas besoin...

    Apparemment, tout ce que tu as à faire pour l'instant, c'est une DLL (Qui utilise MFC ou non) qui exporte les fonctions demandées, avec le bon nom.
    Mais j'ignore si on peut spécifier les noms des exports sous MinGW, je n'ai jamais fait de DLL ailleurs que sous Visual...
    SVP, pas de questions techniques par MP. Surtout si je ne vous ai jamais parlé avant.

    "Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
    Apparently everyone.
    -- Raymond Chen.
    Traduction obligatoire: "Oh, voyons, qui serait assez stupide pour mettre un cast pour faire disparaitre un message d'erreur sans vraiment corriger l'erreur?" - Apparemment, tout le monde. -- Raymond Chen.

Discussions similaires

  1. Exporter des figures dans Word
    Par luda0576 dans le forum MATLAB
    Réponses: 2
    Dernier message: 16/10/2006, 13h06
  2. [VB6] selection texte dans word
    Par tim69000 dans le forum VB 6 et antérieur
    Réponses: 13
    Dernier message: 23/05/2006, 11h12
  3. [VBA-W] Selectionner du texte dans Word XP
    Par tintin101 dans le forum VBA Word
    Réponses: 8
    Dernier message: 17/05/2006, 18h56
  4. insertion de texte dans word via vb
    Par godik dans le forum VBA Word
    Réponses: 1
    Dernier message: 15/05/2006, 13h07
  5. [VBA-E] Insertion de texte dans word
    Par malhivertman1 dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 11/05/2006, 16h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo