LibreOffice 5.0.1 crashes when it calls ODMRegisterApp function - interop

I am using Libreoffice 5.0, I am trying to create a macro to save the file in my application, i get an error when we try to register odma in the function ODMRegisterApplication. please can someone tell me how to resolve this issue or is there any other alternative to accomplish this task

It might help to post some of your code. Are you trying to call an external library (DLL or SO file) from a LibreOffice macro?
In my experience, using COM and OLE calls from LibreOffice is buggy. An alternative using python is discussed in this question.

Related

Added external library can't be seen - NetBeans

I downloaded SocketTest project and made some changes to read data from MS SQL database. Added external library:
But I'm getting java.sql.SQLException: No suitable driver found... when I run the project.
I'm sure there is no mistake in my source code. Because I tested my class on alternate project. It's running smoothly. But I wonder why MS SQL library can't be seen even after I add that.
I also tried to use the newest version of MS SQL library but still no success.
I also tried to analyze project.xml file. But I guess solution is not there.
Please help me to solve this issue.
Thanks in advance.
Solution has been found. build.xml file has been cleared and copied from newly created NetBeans project.

HtmlAgilityPack LoadFromBrowser method not found

I am using HtmlAgilityPack 1.6.2 within a .NET Core 2.0 Console application. HtmlWeb.Load function works fine but LoadFromBrowser function is not available. I got a compiler error. The testing code is copied from the tutorial page so it should be correct. Please advise how to use the API.
The LoadFromBrowser method requires the WinForm WebBrowser to work.
Since there is not WebBrowser in .NET Core 2.0, this method is not available.
This method could be available in the future by replacing the WebBrowser by an open source browser but there is currently no short-term plan for it.
EDIT: Answer comment
Is there still no solution for this?
I didn't try it, but some package support web browser for .NET Standard such as : https://www.nuget.org/packages/Selenium.WebDriver
So perhaps if you use this package to retrieve the HTML and use it with HAP, that will work.
I have the same prob, installed Selenium.WebDriver, but don't know how to use it with HAP to wait until JS is loaded.

Documentation for Javascript code in RStudio?

RStudio has support for ROxygen for generating documentation for R code. My R package has a fair bit of Javascript code in it. Has anyone written an RStudio plugin to support Javascript documentation, using JSDoc for example?
I'd like the equivalent of "Insert ROxygen skeleton", which isn't trivial to write myself, since it needs to parse the following Javascript.
There's now a prototype addin for RStudio to do this. It currently uses the development version of the js package, so you'll need two Github installs to use it:
devtools::install_github("jeroen/js")
devtools::install_github("dmurdoch/JSDocPlugin")
See the ?insertJSDocAddin help topic for instructions on how to install it with a keyboard shortcut.
Comments or pull requests on https://github.com/dmurdoch/JSDocPlugin would be welcome.

How to change MFC application UI

I have implemented an windows application using Visual studio 2008 and for front end I used MFC Controls.
I need to change look and feel of application. Here is Ui sample image of old and new look.
Can anybody suggest me how it can be done in visual studio or should I use some other tool.
Any help would be appreciated.
Thanks
I can think of 3 ways:
Implement it yourself
Use an external library like Codejock
Adding a manifest file to your project
Using a manifest file will give you the look and feel of the OS your app is running on.
You can overwrite some needed methods of default CMFCVisualManger by creating your own class.
Then it's up to you how you want to design it.

Using IntelliJ IDE and Lua Programming Language to make Corona Applications

I have successfully installed:
1) IntelliJ IDEA 10.0.3 with Lua Plugin
2) Corona SDK
3) Corona API for IntelliJ
I can now use autocompletion features of Lua and Corona using IntelliJ IDEA
Now my problem is :
When I try to run a sample main.lua script file using IntelliJ IDEA, i get this error
"C:\Program Files\Lua\5.1\lua.exe" C:/Users/mshahab/IdeaProjects/TestOne/main.lua
C:\Program Files\Lua\5.1\lua.exe: C:/Users/mshahab/IdeaProjects/TestOne/main.lua:1: attempt to index global 'display' (a nil value)
stack traceback:
C:/Users/mshahab/IdeaProjects/TestOne/main.lua:1: in main chunk
[C]: ?
Process finished with exit code 1
And when I run it (main.lua file) manually using the Corona Simulator it works fine. I am not sure what am I missing here ? Any pointers would be great :) Thanks
I am attaching the screenshot too
There is a good blog post that explains the setup
http://producerism.com/blog/how-to-develop-in-corona-sdk-on-windows/
"C:\Program Files\Lua\5.1\lua.exe" C:/Users/mshahab/IdeaProjects/TestOne/main.lua
This is running the file under vanilla Lua. Lua has no display library and your code isn't loading one.
run it (main.lua file) manually using the Corona Simulator
You're running the script in a totally different app here, one that includes the display library. You need to configure IntelliJ to run Lua scripts via the simulator.

Resources