2 Replies - 972 Views - Last Post: 16 June 2009 - 08:08 AM Rate Topic: -----

#1 sachin635   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 10-September 08

How to get the document which is associated with a process having spec

Posted 16 June 2009 - 07:55 AM

when a PDF file is opened, AcroRd32.exe is started automatically, and we get the GUID value of that adobe reader.
In c#, can't we get the document associated with the GUID value, I mean the total PDF file which is opened in adobe reader at runtime.
Here I'm struck up in code, can anyone suggest how to where I was missing something.
Acrobat.CAcroAVDoc AcroAvDoc;
Type AcrobatCAcroType;
AcrobatCAcroType = Type.GetTypeFromCLSID(new Guid("{CA8A9780-280D-11CF-A24D-444553540000}")); This CLSID is of adobe reader's.

///////Here I think I'm missing something

Object obj = Activator.CreateInstance(AcrobatCAcroType);
AcroAvDoc = (Acrobat.CAcroAVDoc)obj;
I think I can get the full PDF document with AcroAvDoc.GetPDDoc();

Thank you...

Is This A Good Question/Topic? 0
  • +

Replies To: How to get the document which is associated with a process having spec

#2 SwiftStriker00   User is offline

  • No idea why my code works
  • member icon

Reputation: 439
  • View blog
  • Posts: 1,617
  • Joined: 25-December 08

Re: How to get the document which is associated with a process having spec

Posted 16 June 2009 - 08:06 AM

I have no idea. But it would be helpful to people if you u used [code] tags
Was This Post Helpful? 0
  • +
  • -

#3 papuccino1   User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Re: How to get the document which is associated with a process having spec

Posted 16 June 2009 - 08:08 AM

Re-write your question and clearly state what the problem is and where exactly you get an exception. Use code tags.

We shouldn't have to dig through your post to help you. Make an effort and someone will help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1