Hi team
i have followed the procedure that is told in the below URL for exporting html data to pdf.
it is very simple and two line code.
http://www.primeapple.co.uk/index.php/notes-to-pdf-using-selection-formulas
the procedure followed by me for executing this functionality is
step one : created an agent with name "itext". In porperties of agent -> basic tab
Trigger by "onevent"(radio button selected)
-> Agent list selection (choosen option from drop down)
->Target:none (choosen option from dropdown)
step two : In properties of Agent -> security tab
Run time security level : 2.Allow restricted operations
(radio button is selected)
step three : In agent Declaration part wrote following lines as mentioned below
Declare Function DoPDF Lib "DOMINOPDF.DLL" (ByVal szInput As String, ByVal szOutput As String, ByVal szOptions As String) As Long
step four : In agent Intialize part , i wrote the following code
Sub Initialize
' Open agent log
Dim agentLog As NotesLog
Dim AgentArgs List As String
Set agentLog = New NotesLog( "Agent log" )
Call agentLog.OpenAgentLog
On Error GoTo check
Dim fileNum As Integer
Dim fileName As String
fileNum% = FreeFile()
fileName$ = "c:\data.domp"
Open fileName$ For Output As fileNum%
Print #fileNum%, |http://www.google.com|
Print #fileNum%, |http://www.primeapple.co.uk|
Close fileNum%
Call DoPDF(|c:\data.domp|, |c:\test.pdf|, ||)
check:
Call agentLog.LogAction( "Error " & Err() & ": " & Error())
End Sub
I am triggering the agent using the javascript code in the web browser and it is showing me the following error
ERROR : Error 201: Operation is disallowed in this session
Please help me out where i am doing wrong .
Note : in run time security level , i tried the third option as well "3.Allow restricted operations with full administrated rights".
But the result is same .
Thanks in advance
but i m encountering the following error