]> Creatis software - gdcm.git/blobdiff - Example/PrintDocument.cxx
ENH: gdcm now almost compile with GDCM_LEGACY_REMOVE on
[gdcm.git] / Example / PrintDocument.cxx
index 81da2f317cec05937ada1756b62bdd9ca823b80b..fdce422fb04bd84f7b623287c7fed54f2f74627a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/06 15:49:31 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2005/07/19 15:19:25 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -55,7 +55,8 @@ int main(int argc, char *argv[])
 
    if (argc > 4)
       e1->SetLoadMode(NO_SEQ | NO_SHADOW);
-   e1->Load( fileName.c_str() );
+   e1->SetFileName( fileName.c_str() );
+   e1->Load( );
 
 // we use PrintDocument, because we want to print what we get