Page 1 sur 1

Export de base et PJ

MessagePublié: 30 Sep 2003 à 10:24
par steph
Bonjour, J'essaie d'exporter une base notes R5 en format DXL : Problème : les PJ apparaissent en base64, le decodage marche mais : - pas d'entete mime dans le DXL => je ne sais ni le nom ni le type de la PJ. QQUN aurait-il un script magique d'export des PJ pour un doc donné ? Même pb pour les champs en texte riche ! merci par avance.

Re: Export de base et PJ

MessagePublié: 01 Oct 2003 à 09:53
par Cedric
Petit test d'export d'une base avec PJ (dans le masque):Tu noteras le <attachmentref name='Coeur.gif' displayname='Coeur.gif'>Qui donne bien le nom de la PJ.Je t'accorde toutefois qu'on a pas le type mime.<?xml version='1.0' encoding='utf-8'?><!DOCTYPE form SYSTEM 'E:\Lotus\Notes6\xmlschemas/domino_6_0_1.dtd'><form name='Document' xmlns='http://www.lotus.com/dxl' version='6.0' maintenanceversion='1.0' replicaid='C1256DB2003079A1' publicaccess='false' designerversion='6'><noteinfo noteid='132' unid='6C42BD7B336821ADC1256DB200307B24' sequence='2'><created><datetime dst='true'>20031001T104932,52+02</datetime></created><modified><datetime dst='true'>20031001T105027,45+02</datetime></modified><revised><datetime dst='true'>20031001T105027,44+02</datetime></revised><lastaccessed><datetime dst='true'>20031001T105027,44+02</datetime></lastaccessed><addedtofile><datetime dst='true'>20031001T104944,47+02</datetime></addedtofile></noteinfo><updatedby><name>CN=Cedric CARNIEL/O=WAD</name></updatedby><wassignedby><name>CN=Cedric CARNIEL/O=WAD</name></wassignedby><body><richtext><pardef id='1'/><par def='1'/><par/><par><field type='richtext' kind='editable' name='Body'/></par><par/><par><attachmentref name='Coeur.gif' displayname='Coeur.gif'><picture height='47px' width='50px'><notesbitmap>lQAmAAAAAAAAAAAAAAABAAAAAAAAADIALwAIAAEACAABAAkAAgCWAIQDAAAAAAAAAAAAAC8AcgNAAgDDAMICQAMAxQBAAgDCAAECwgEBAsMAxAJAAgDFAEACAMICwwEBAsIAAQLEAQECQAIAxADJAMMCwwABAsUBAQLCAAECxQEBAkACAMMAy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AAAAAAAAAHNlIFJlc291cmNlIExpc3QBAQEBAQEBASR7MACybSXBAAD+//r/3d0=</notesbitmap></picture></attachmentref></par></richtext></body><item name='$FILE' summary='true' sign='true' seal='true'><object><file hosttype='msdos' compression='none' flags='storedindoc' name='Coeur.gif'><created><datetime dst='true'>20030620T224422,31+02</datetime></created><modified><datetime dst='true'>20030611T120011,44+02</datetime></modified><filedata>R0lGODlhEAAQAKIAAAAAAP//0P8AAP//0P///wAAAAAAAAAAACH5BAEAAAQALAAAAAAQABAAAAMgSLrcK1C8yCK1cOKtt60e1YSSQ3hmV6aKyD5vLM90PScAOw==</filedata></file></object></item><item name='$$ScriptName' summary='false' sign='true'><textlist><text>Document</text></textlist></item></form>

Re: Export de base et PJ

MessagePublié: 02 Oct 2003 à 08:35
par steph
Super en effet , Comment as-tu obtenu cet export (Client R6 ?) L'export via DXL Export (V1.01) n'est pas aussi riche ... Elle échoue, de plus, sur certains contenus de texte riche !! Ta méthode m'interresse !!!

Re: Export de base et PJ

MessagePublié: 02 Oct 2003 à 10:43
par Cedric
effectivement... précision manquante.J'ai utilisé le designer du client v6.Menu "Tools\DXL Utilities\Exporter", sorry but version anglaise :)Ce n'est donc pas par programmation que je l'ai fait... j'ai jamais trop regardé les classes LS qui permettent de faire ces trucs là.Je viens de tester le code d'exemple de la classe NotesDXLExporterSub Initialize Dim session As New NotesSession Dim db As NotesDatabase Set db = session.CurrentDatabase REM Open xml file named after current database Dim stream As NotesStream Set stream = session.CreateStream filename$ = "c:\dxl\" & Left(db.FileName, Len(db.FileName) - 3) & "dxl" If Not stream.Open(filename$) Then Messagebox "Cannot open " & filename$,, "Error" Exit Sub End If Call stream.Truncate REM Export current database as DXL Dim exporter As NotesDXLExporter Set exporter = session.CreateDXLExporter Call exporter.SetInput(db) Call exporter.SetOutput(stream) Call exporter.ProcessEnd SubBen, il fonctionne bien... J'obtiens également un <attachmentref name='Chapeau.gif' displayname='Chapeau.gif'> mais toujours sans type mime.

Re: Export de base et PJ

MessagePublié: 02 Oct 2003 à 13:27
par steph
Merci cedric. Un petit problème : je n'ai de licence que pour la R5 !!! La R6 intègre visiblement les fonctionnalités d'export DXL en natif. Il va falloir que je creuse ou que je cherche une version + recente de DXLExport ... Si tu trouve des billes la dessus par hazard !!! Merci pour tout.