bi publisher - PHP sending data to BIPublisher plugin -


i asked study proof of concept , can't find telling me following can solution.

indeed, have process data find .docx or .rtf template have use , build xml file can loaded oracle bipublisher plugin in ms word.

getting , processing data isn't quite difficult but, browser's security can't open ms word on client-side. thinking making them download *.docx or .rtf file*s have been modified bipublisher conditional structures written in templates.

do know if can interact presintalled ms word plugin bip using php script ?

actually can interact bi publisher word plugin in php. first make sure java, word , bi publisher plugin works, think have done. create xml file this:

<tb>   <type>pdf</type>   <template>absolute path rtf template</template>   <data>absolute path xml data</data>   <xlifffile></xlifffile>   <tmppath>c:\users\<user name>\appdata\local\oracle\bipublisher\templatebuilderforword\tmp</tmppath>   <locale>en-us</locale>   <tbhome>c:\program files (x86)\oracle\bi publisher\bi publisher desktop\template builder word</tbhome>   <mastertemplate></mastertemplate>   <userconfigdir>c:\users\<user name>\appdata\local\oracle\bipublisher\templatebuilderforword\config</userconfigdir> </tb> 

the tmppath, tbhome , userconfigdir values from installation, modify them accordingly. next step call java in php script, done exec() function.

java -xmx256m -jar "c:\program files (x86)\oracle\bi publisher\bi publisher desktop\template builder word\jlib\rtf2pdfv2.jar" absolute_path_to_the_xml_you_created 

again, check path of rtf2pdfv2.jar. after that, can goto tmppath , there's folder inside called tmp, open it, you'll find generated pdf. , pdf can viewed directly inside browser.

although can make procedures above, suggest try bi publisher server, offers more desktop plugin version.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -