Saving to .pcf

 

Hello all,

I am trying to save any document to .pcf.

Source seems to be quite simple:

 

 

RevisionManager.Application application;

RevisionManager.Document document;

application = new RevisionManager.ApplicationClass();

document = (RevisionManager.Document)application.Open(

  "c:\\dil1.par",

  RevisionManager.RevisionRuleType.ExternalBOM, false);

 

bool isSuccess;

application.SaveDataToPCF("c:\\dil1.pcf", out isSuccess);

 

but saving all the time finishes with exception:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

 

Am I wrong with something? Shall I initialize something before?

Thanks for any advice.

Regards,

Jara

 

 

Posted by: Jara Ctverak
Post date: 9/14/2010 4:08:29 AM

1 REPLY

RE: Saving to .pcf

 

Jara,

I am familiar with this issue.  I believe that the problem is that it cannot be fully automated because in order for it to work, an action has to be set on an item in the Revision Manager grid which we cannot do programatically.  I suggest that you call GTAC and reference PR 2044688.

 

Posted by: Jason Newell
Post date: 9/14/2010 7:31:42 PM