Domino 9 und frühere Versionen > Entwicklung

PDF erstellen/füllen per Agent

<< < (5/6) > >>

elajen:
Hallo zusammen,

@Djahan - freut mich, wenn Dir mein Tool gefällt.  Über das Schließen mach ich mir noch mal Gedanken, wobei das nicht so ganz einfach ist.

@Armin - Versuch doch mal aus Notes nur das PDF aufzurufen, ob das funktioniert.

Ansonsten habe ich mal noch eine andere Aufruf-Methode.


--- Zitat ---Function StartFile( ls_path As String ) As Integer
On Error Goto errorHandler
   
Const MSG_ERROR_PLATTFORM = {Diese Funktion wird auf der Ihrer Plattform nicht unterstützt.}
Const KOMMANDO_WIN_LOADER = "cmd /c"
Const SEP = {"}
Dim s As New NotesSession
Dim taskId As Integer
   
'Init
   
'Main     
   
   If isdefined( "WIN32" ) Or isdefined( "WIN16" ) Then
      If Not ls_path = "" Then
         If Left( ls_path, 1 ) <> SEP & Right( ls_path, 1 ) <> SEP Then
            ls_path = SEP & ls_path & SEP
         End If
         taskId = Shell( KOMMANDO_WIN_LOADER & " " & ls_path, 1)
         StartFile = True
      End If
   Else
      Msgbox MSG_ERROR_PLATTFORM, 0+48, "Plattform: " & s.platform
      StartFile = False
   End If
   
'Term
wayOut:   
   Exit Function
   
errorHandler:
   Print "Fehler in Funktion <StartFile> in Zeile " & Erl() & ": " & Error()
   StartFile = False
   Resume wayOut
end function

--- Ende Zitat ---

Vielleicht startet der Reader mit diesem cmd-Aufruf.

Gruß von Ekki.

ata:
 ???

Ist "isDefined("Win32")" eine Funktion die ich noch nicht kenne?

ata

cococo69:

--- Zitat von: elajen am 07.04.05 - 14:59:28 ---Ansonsten habe ich mal noch eine andere Aufruf-Methode.

--- Ende Zitat ---

Hallo Ekki,

GENIAL, es funktioniert nun auch mit dem Acrobat Reader 7.0 EINWANDFREI!!!  :) :) :)

Schönes Wochenende!

Gruß Armin

elajen:
@ata

IsDefined function 

Tests a string expression to determine whether it is the name of a product constant at run time.
Syntax
IsDefined ( stringExpr )
Elements
stringExpr
Any string expression.
Return value
IsDefined returns TRUE (-1) if stringExpr is the name of a product constant at run time. Otherwise IsDefined returns FALSE (0).
Usage
The IsDefined function is used as a run-time parallel to the %If directive. It is commonly used to test the run-time value of a platform-identification constant that may be used to govern conditional compilation in a %If directive.
Hinweis  IsDefined is not a LotusScript keyword.

ata:
@elajen

thanks a lot - war mir bisher noch nie über den Weg gelaufen...

ata

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln