Author Topic: CopyToDatabase method problem  (Read 694 times)

LAD

  • Full Member
  • *
  • Posts: 182
  • Karma: +1/-0
    • View Profile
CopyToDatabase method problem
« on: November 27, 2008, 10:01:30 AM »
Hi,
i have a problem when using copyToDatabase method to copy a doc1 into the other db. Important fact is that doc1 has a doclink to another document(doc2). When the code is
Call doc1.CopyToDatabase( otherDb )
everything is fine and by clicking doclink in new doc1 in otherDb, doc2 (in first db) is opened correctly.

But with
Set doc3 = doc1.CopyToDatabase( otherDb )
the doclink doesnt work. It says "the linked document cannot be found in the view" error.
I need use this way coz i need to change the second doclink leading from doc2 to newly created doc in otherDb (to doc3)

I hope that u understand my problem and I would appriciate any step to find a solution.
Thanks a lot.

 

Posting Disclaimer: Any individual may post a message in this forum and may do so anonymously. Therefore, the sole author is exclusively and entirely responsible for all opinions in that message. They do not represent the official opinions of Techronnati, its administrators or moderators or the Techronnati Management. Techronnati is merely acting as an impartial conduit for constitutionally protected free speech and is not responsible and will not be held liable for the content of such messages.