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.