What is the Difference Between below -For Creating Calc Document ?
1) spreadsheet = ThisComponent.createInstance("com.sun.star.sheet.Spreadsheet")
2) doc = StarDesktop.loadComponentFromURL("private:factory/scalc", "_default", 0, args())
In Which Situation and where should i Use ?
Can Anyone Explain with Example and Code ?