Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


sai k rishna595 2.Feb.12 09:06 AM a Web browser
Applications Development All Releases All Platforms


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






Converting HTML to pdf using LS age... (sai k rishna595... 2.Feb.12)
. . RE: Converting HTML to pdf using LS... (MALLIK R PERVEL... 5.Feb.12)
. . RE: Converting HTML to pdf using LS... (MALLIK R PERVEL... 5.Feb.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow