Click here to Skip to main content
15,883,767 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm trying to use OpenOffice 3.1 for Opening the Office Word template as well as modifying it dynamically with Database fields information at the time of opening the document from my harddisk srored loction.

I'm successfully opening and writing into document in my development machine but after deployed to production server(OS Windows 2003 and II6.0) hanging at uno.util.Bootstrap.bootstrap() line.

VB
Dim objDocument As Object
Dim FileNameSource As String = "C:\SysReports\FaceSheet.doc"
Dim localContext As XComponentContext
localContext = uno.util.Bootstrap.bootstrap() //Hanging at this Line
Dim objServiceManager As unoidl.com.sun.star.lang.XMultiServiceFactory
objServiceManager = CType(localContext.getServiceManager(), XMultiServiceFactory)


Plz help to sove this
Posted
Updated 10-Mar-10 17:49pm
v2

try compiling under x86 processor.
 
Share this answer
 
Hi,

I am facing the same problem, that my code is hanging at the same line. Some more specifications regarding my problem.

- I am having Windows 7 Ultimate OS
- I am using Visual Studio 2008
- The code is written in 3.5 website (which later on I changed to 2.0 but in vain)

Also, I am not getting x86 processor option for compilation platform.

Please let me know if there is any solution to this, as it is kind of urgent. Thanks..
 
Share this answer
 
I had the same problem. The solution for me was a solution offered in the forum:
http://www.oooforum.org/forum/viewtopic.phtml?t=63543 by Thant Zin...

Please search setup.xcu in your Program Files Folder.
Then open the file and replace
XML
<prop oor:name="ooSetupInstCompleted">
<value>false</value>
</prop>
<prop oor:name="ooSetupShowIntro">
<value>true</value>
</prop>

with
XML
<prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="LicenseAcceptDate" oor:type="xs:string">
<value>2008-12-25T17:34:04</value>
</prop>
<prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>

It is not a good solution, because I must do this in every PC that runs the application. If someone knows a better way, please tell us...
 
Share this answer
 
"Enable 32-Bit Applications" = True for the relevant IIS Application Pools.
It's located under "Advanced Settings". Then "Recycle" the Application Pool.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900