Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: bikerboy am 28.10.09 - 11:43:01

Titel: Nur ein RichtextItem exportieren
Beitrag von: bikerboy am 28.10.09 - 11:43:01
Hallo,

irgendwie stehe ich gerade auf dem Schlauch.

Zitat
Input

For NotesDXLExporter this parameter is an object of the following type:

NotesDatabase
NotesDocument
NotesDocumentCollection
NotesNoteCollection
For all other processes this parameter is a string or an object of the following type:

NotesDOMParser (pipelines from a NotesDOMParser object)
NotesDXLExporter (pipelines from a NotesDXLExporter object)
NotesRichTextItem
NotesSAXParser (pipelines from a NotesSAXParser object)
NotesStream
NotesXSLTransformer (pipelines from a NotesXSLTransformer object)
Auszug aus der Hilfe

Also kann ich doch ein RichtextItem als Input definieren, oder ?

Da mault er aber immer gleich rum ???
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: Ralf_M_Petter am 28.10.09 - 11:54:34
Äh Robert aus welcher Version ist dein Zitat, den es ist nicht korrekt.
Code
CreateDXLExporter method
Creates a NotesDXLExporter object.

Note This method is new with Release 6.

Defined in
NotesSession

Syntax
Set notesDXLExporter = notesSession.CreateDXLExporter( [ input ] , [ output ] )

Parameters
input

Optional. An object of the following type:

NotesDatabase 
NotesDocument 
NotesDocumentCollection 
NotesNoteCollection 
See SetInput in the NotesXMLProcessor class for additional information.

output

Optional. An object of the following type:

NotesDOMParser (pipelines to a NotesDOMParser object) 
NotesDXLImporter (pipelines to the NotesDXLImporter object) 
NotesRichTextItem 
NotesSAXParser (pipelines to a NotesSAXParser object) 
NotesStream 
NotesXSLTransformer (pipelines to the NotesXSLTransformer object) 
See SetOutput in the NotesXMLProcessor class for additional information.

Note The parameters are not in COM. Use Export in NotesDXLExporter and Import in NotesDXLImporter.

Return value
notesDXLExporter

The newly created object.

CreateDXLExporter method
Creates a NotesDXLExporter object.

Note This method is new with Release 6.

Defined in
NotesSession

Syntax
Set notesDXLExporter = notesSession.CreateDXLExporter( [ input ] , [ output ] )

Parameters
input

Optional. An object of the following type:

NotesDatabase 
NotesDocument 
NotesDocumentCollection 
NotesNoteCollection 
See SetInput in the NotesXMLProcessor class for additional information.

output

Optional. An object of the following type:

NotesDOMParser (pipelines to a NotesDOMParser object) 
NotesDXLImporter (pipelines to the NotesDXLImporter object) 
NotesRichTextItem 
NotesSAXParser (pipelines to a NotesSAXParser object) 
NotesStream 
NotesXSLTransformer (pipelines to the NotesXSLTransformer object) 
See SetOutput in the NotesXMLProcessor class for additional information.

Note The parameters are not in COM. Use Export in NotesDXLExporter and Import in NotesDXLImporter.

Return value
notesDXLExporter

The newly created object.


Wie du siehst, geht kein Richtextitem als input sondern nur als Output. Habe jetzt gerade mal geschaut steht in der 7.0.2 Designer Hilfe auch sinngemäß. Wo also hast du dein Zitat her?

Grüße

Ralf
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: bikerboy am 28.10.09 - 12:40:12
Will dich nun nicht enttäuschen ist aus der "aktuellen" 8.5.1 Hilfe
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: Ralf_M_Petter am 28.10.09 - 12:48:12
Nun aber da steht ja wieder, dass der Exporter Richtextitem nicht kann. Lies doch mal genau steht doch explizit da was NotesDXLExporter kann und was alle anderen xmlProcesser können. Verstehe wirklich nicht was da unklar ist?

Dein erstes Snippet war ja nur deshalb verwirrend, weil ich annahm, dass das die Hilfe derr DXLExporter Klasse war. In Wirklichkeit zeigst du aber die Hilfe von NotesXMLProcessor an.

Grüße

Ralf
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: bikerboy am 28.10.09 - 12:57:24
Hmm interessant, ich war auch in der NotesDXLExporter-Klasse, wenn ich da auf SetInput-Klicke leitet er mich auf den Eintrag um.
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: Ralf_M_Petter am 28.10.09 - 13:02:03
Hm ist irgendwie logisch, da setInput eine Methode ist die DXLExporter von der Mutterklasse erbt. Das ist z.B. in der Hilfe zu NotesRichtextItem auch so. Wenn du da auf eine Methode klickst, die von NotesItem geerbt ist dann springt er auch zu der Hilfe von Notesitem. Das ist übrigens auch bei Javadoc so.

Grüße

Ralf
Titel: Re: Nur ein RichtextItem exportieren
Beitrag von: pram am 28.10.09 - 14:31:16
ich verweise mal hierrauf: http://atnotes.de/index.php/topic,46501.msg299364.html#msg299364

Gruß
Roland