Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How to insert frame from library to Document?

$
0
0

Below the code to open and paste a data from first postion in library to document, it is not working fine  

InterfacePtr<ILibrary> PtrLibrary;

          IDFile sysFile;

          std::string path = "/Users/Arun/Desktop/Library.indl";

          sysFile.SetPath(WideString(path.c_str()));

 

//PtrLibrary->Create(sysFile,NULL);

InterfacePtr<ILibraryCmdUtils> libcmdUtils(ILibraryCmdUtils::QueryLibraryCmdUtils());

          if(libcmdUtils == NULL)

  break;

 

          InterfacePtr<ICommand> openlibcmd(libcmdUtils->CreateLibraryOpenLibCmd(sysFile));

          if(openlibcmd == NULL)

  break;

 

          CmdUtils::ProcessCommand(openlibcmd);

  AssetIDListid;// = libcmdUtils1->GetAssetList();

 

                    libcmdUtils->ProcessLibraryPlaceItemsCmd(id[0],PtrLibrary,ac->GetContextDocument());

 

Can any one correct me. if any thing wrong...


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>