Home
TeamSite
Creating PRF file
Gilad
Hi,
When using the checkout method (Worksite7.5), for example:
pDoc.CheckOut strCheckoutPath & "\" & pDoc.Number & ".doc", nrReplaceExistingFile, Date, ""
PRF file is not created.
When a user opens a doc, on the other hand, it is copied to his machine + PRF file is created in the same location.
Are there any methods / properties for creating the PRF file when checking out a document?
Find more posts tagged with
Comments
STodd
Why do you need the PRF?
There do not seem to be any PRF-creation methods. The PRF is just a text file in a defined format - you can create it manually yourself if you have a document Object (in your case pDoc). However, you will have to be careful, as the file time is recorded in the PRF itself, and can cause problems if not handled correctly. This varies between iManage/WorkSite versions, with later versions that use UTC needing date/time data formatted using CreateFile / GetFiletime to get correct information to include.
Unless absolutely necessary, I would avoid trying to create PRF files and leave that to the application.
Steve
Gilad
I need the PRF file because when I try to close a document (lets say a Word document) from within an application I get the attached error message
(see attached) indicating that a PRF file is missing.
I thought of creating a text file but I was wondering if there aren't faster ways or maybe I'm on the wrong track..
jny
You may use the OpenCmd to check out and open the worksite document in its native editor. The corresponding prf file is stored in the portable path.
The imanage.dll api's is a server dll that transacts directly with the backend server. If you use it, the prf file is not automatically generated as it is done by the client-side code -- specifically the IManExt.dll.
paolo1
Hi
I am having exactly the same error message related to prf. We are using desksite
6.x and recently upgrade to sp1 to see if it would fix this behaviour unfortunallywithout luck.
Do you have any other tips for this?
Thanks
Paolo