Domino 9 und frühere Versionen > ND7: Entwicklung
Excel auf dem Server?
eknori:
--- Zitat ---Muss die Datei physisch auf dem Server gespeichert werden, damit ich diese verschicken kann?
--- Ende Zitat ---
yo, das musst du
rasacani:
Hallo
Da bin ich wieder. Ich habe mich getraut (LS). Ich gebe eine Excel-Datei aus und es klapp auch, aber nicht auf dem Server. Ich habe hier gelesen, das man als alterative auch eine CSV-Datei ausgeben kann. Dies habe ich dann promt eingebaut
--> OLE: Automation object error --> ???
hier die Stelle wo ich es eingebaut habe:
Else ' alle Documente
Set fs = CreateObject("Scripting.FileSystemObject")
Set abc = fs.CreateTextFile("c:\Raitest.csv", True)
Set otherdoc = otherview.GetFirstDocument
While Not otherdoc Is Nothing
abc.writeline otherdoc.columnvalues(1)
For colmn = 0 To Ubound(otherview.Columns)
MulCol = otherdoc.columnvalues(colmn)
If Isarray(MulCol) Then
ColCat = Cstr(MulCol(0) )
For ColNum=1 To Ubound(MulCol)
ColCat=ColCat & " | " & Cstr(MulCol(ColNum))
Next ColNum
xlApp.cells(row,colmn+1) = ColCat
Else
xlApp.cells(row,colmn+1) = Cstr( MulCol )
End If
'xlApp.cells(row,colmn+1) = otherdoc.columnvalues(colmn)
Next
row=row+1
Set otherdoc = otherview.GetNextDocument(otherdoc)
Wend
abc.close
End If
Was kann das denn schon wieder sein?
Rainer
rasacani:
Sorry 8) 8) 8)
mein Beitrag sollte woanders hin.
Rainer
botschi:
--- Zitat von: eknori am 20.03.07 - 17:59:47 ---
--- Zitat ---Muss die Datei physisch auf dem Server gespeichert werden, damit ich diese verschicken kann?
--- Ende Zitat ---
yo, das musst du
--- Ende Zitat ---
Könnte man das Script so umstellen, dass ich mir keine neue Datei erzeuge sondern eine Vorlage öffne, die als Anhang in einem Dokument abgelegt wurde? Oder irgendwo ausm Netzlaufwerk heraus?
Die Vorlage (mit Formel) kopieren und in meine Datei einfügen oder sowas?
Matthias
eknori:
Klar kann man das Script umbauen; mach ich aber nicht ... ;D
Für den Fall, den du ansprichst, ist das hier eine geeignete Lösung http://jxls.sourceforge.net/
( langsam aber sicher machen mir die Java Dinger richtig Spass ! )
--- Zitat ---jXLS is a project that implements this approach and allows creation of extremely complex Excel reports just in several lines of code. All you need is to create XLS template file with all required formatting, formulas, macros etc using specific notation to indicate placement of data and then write a couple lines of code to invoke jXLS engine passing XLS template and the exported data as parameters.
--- Ende Zitat ---
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln