BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Follow BOB on Twitter! 
Follow BOB on Twitter! (Opens a new window)  

General Notice: No events within the next 45 days.

Publishing agnostic docs

Goto page Previous  1, 2
 
Search this topic... | Search SDK (VBA/ASP/JSP)... | Search Box
Register or Login to Post    Forum Index -> SDK (VBA/ASP/JSP)  Previous TopicPrint TopicNext Topic
Author Message
joepeters
Forum Fanatic
Forum Fanatic



Joined: 29 Aug 2002

Posts: 6555
Location: Connecticut, USA


flag
PostPosted: Wed Mar 13, 2019 6:24 am 
Post subject: Re: Publishing agnostic docs

You will need the following references:
Crystal Enterprise Plugin Manager Library 14.0
Crystal Enterprise InfoStore Library 14.0
Crystal Enterprise Framework Library 14.0
Back to top
lokeshborse
Forum Member
Forum Member



Joined: 21 Sep 2010

Posts: 20


flag
PostPosted: Wed Mar 13, 2019 6:41 am 
Post subject: Re: Publishing agnostic docs

Thanks. I am able to compile now without any issue. I am not familiar with vba so could you please let me know what to do next to run the code so that document will get uploaded to BO? Our requirement is, we want the agnostic document to get published to BI launchpad in specific folder once users post them to specific UNC path. icon_rolleyes.gif
Back to top
joepeters
Forum Fanatic
Forum Fanatic



Joined: 29 Aug 2002

Posts: 6555
Location: Connecticut, USA


flag
PostPosted: Thu Mar 14, 2019 7:17 am 
Post subject: Re: Publishing agnostic docs

That's what this does... You just need to change the values of pathStart and folderNewReports.
Back to top
lokeshborse
Forum Member
Forum Member



Joined: 21 Sep 2010

Posts: 20


flag
PostPosted: Thu Mar 14, 2019 7:41 am 
Post subject: Re: Publishing agnostic docs

Thanks, but how to run or schedule this code, in excel or any other tool to automate this?
Back to top
joepeters
Forum Fanatic
Forum Fanatic



Joined: 29 Aug 2002

Posts: 6555
Location: Connecticut, USA


flag
PostPosted: Thu Mar 14, 2019 12:15 pm 
Post subject: Re: Publishing agnostic docs

I created it as a one-time job, but I suppose you could add the code to an auto_open macro, and then schedule it with Windows Scheduler. You'd want to add code to it to make sure you don't upload documents that are already there.

Joe
Back to top
SuKA
Forum Member
Forum Member



Joined: 20 Oct 2018

Posts: 13



PostPosted: Fri Mar 15, 2019 8:09 am 
Post subject: Re: Publishing agnostic docs

I think the best way to port the original VBA code to VB script, then you can schedule this script in CMC.
Back to top
lokeshborse
Forum Member
Forum Member



Joined: 21 Sep 2010

Posts: 20


flag
PostPosted: Mon Mar 25, 2019 4:07 am 
Post subject: Re: Publishing agnostic docs

Can you provide me a code to overwrite existing file if any? or it will create a copy if the file exists?

I tried to run the code again but received attached error.
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> SDK (VBA/ASP/JSP)  Previous TopicPrint TopicNext Topic
Page 2 of 2 All times are GMT - 5 Hours
Goto page Previous  1, 2
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0277 seconds using 17 queries. (SQL 0.0028 Parse 0.0009 Other 0.0239)
CCBot/2.0 (https://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo