File in USE NEED help Urgent

Message = "The process cannot access the file ‘D:\KBASE-I\GKB\GB\reports\Trial Prot Rport.pdf’ because it is being used by another process."


on my sreen the 2 button

1 ) Genrate PDF
2) Mail

I follow this steps
1) click button genrate the PDF on server side
2) when i click email. It attach to mail directly … mail was sent ok …
when i was try to click again on PDF button then it will shows Message the file in use by another process

what i will do ?
tell me urgent


Hello Rahul,

Thanks for your interest in our products.

Once the PDF document is saved using Pdf object, the file handler is automatically released. As far as your scenario is concerned, when "Generate PDF" button is clicked, please make sure a new object of Pdf class is created. I hope this way your issue can be resolved.

In case you still face any problem or you've any further query, please feel free to contact.