1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" _
(ByVal lpLibFileName As String) As Long
Public Declare Function FreeLibrary Lib "kernel32" _
(ByVal hLibModule As Long) As Long
Public Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As _
Long, ByVal lpProcName As String) As Long
Public Declare Function printForm Lib "C:\Program Files\FMS\FormMaker\bin\FmsFormMakerDll.dll" (ByVal xmlFileIn As String, ByVal pdfFileIn As String, ByVal numberOfCopies As Integer) As String
''permet de mettre les fonction de Anoto
Function ChargementDll()
On Error Resume Next
Dim X As Long
Dim Y As Long
X = LoadLibrary("C:\Program Files\FMS\FormMaker\bin\FmsFormMakerDll.dll")
Y = GetProcAddress(X, "printForm")
a = printForm("C:\Documents and Settings\Christian\Bureau\ANOTO\278.xml", "C:\Documents and Settings\Christian\Bureau\ANOTO\278-06.pdf", 1)
FreeLibrary X
End Function |
Partager