Click here to Skip to main content
15,887,328 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to change SessionID Pin
Vasudevan Deepak Kumar18-Apr-08 1:47
Vasudevan Deepak Kumar18-Apr-08 1:47 
GeneralColour change Pin
jeffrey kalampukattussery17-Apr-08 22:28
jeffrey kalampukattussery17-Apr-08 22:28 
GeneralRe: Colour change Pin
eyeseetee17-Apr-08 22:39
eyeseetee17-Apr-08 22:39 
GeneralRe: Colour change Pin
jeffrey kalampukattussery17-Apr-08 22:50
jeffrey kalampukattussery17-Apr-08 22:50 
GeneralRe: Colour change Pin
eyeseetee17-Apr-08 23:36
eyeseetee17-Apr-08 23:36 
GeneralUsing Formpost Pin
dan!sh 17-Apr-08 22:14
professional dan!sh 17-Apr-08 22:14 
GeneralRe: Using Formpost Pin
Vasudevan Deepak Kumar17-Apr-08 22:22
Vasudevan Deepak Kumar17-Apr-08 22:22 
QuestionASP.NET and OpenOffice (Writer) Pin
Justin Parkes17-Apr-08 22:03
Justin Parkes17-Apr-08 22:03 
Hi,
I am trying to get the page count of a document (openoffice) using asp.net but am having trouble converting the object to a string or integer. My code is below so if anyone can please please help I'd really appreciate it (my head is sore from all the banging I've been doing!)

Thanks

Dim oSM As Object 'Root object for accessing OpenOffice from VB
Dim oDesk, oDoc As Object 'First objects from the API
Dim oPageCount As Object
Dim _args As System.Array
Dim objDummy As Object = New Object
_args = System.Array.CreateInstance(objDummy.GetType, 0)
objDummy = Nothing ' free ressource
Try
oSM = CreateObject("com.sun.star.ServiceManager")
'Create the first and most important service
oSM.createInstance(com.sun.star.frame.Desktop)")
oDesk = oSM.createInstance("com.sun.star.frame.Desktop")

'Open an existing doc (pay attention to the syntax for first argument)
oDoc = oDesk.loadComponentFromURL("file:///" & filetoCount, "_blank", 0, _args)

oPageCount = oDoc.createInstance("com.sun.star.text.TextField.PageCount")

Dim tmp As Object
Dim tmp2 As String
tmp = oPageCount -- {System.__ComObject} i need to get the value that is stored in here to pass it back to the calling procedure????
tmp2 = tmp.ToString()


'Close the doc
oDoc.Close(True)
oDoc = Nothing
Return tmp2
QuestionRe: ASP.NET and OpenOffice (Writer) Pin
Vasudevan Deepak Kumar17-Apr-08 22:07
Vasudevan Deepak Kumar17-Apr-08 22:07 
GeneralRe: ASP.NET and OpenOffice (Writer) Pin
Justin Parkes17-Apr-08 22:11
Justin Parkes17-Apr-08 22:11 
GeneralRe: ASP.NET and OpenOffice (Writer) Pin
Vasudevan Deepak Kumar17-Apr-08 22:21
Vasudevan Deepak Kumar17-Apr-08 22:21 
GeneralRe: ASP.NET and OpenOffice (Writer) Pin
Justin Parkes17-Apr-08 22:31
Justin Parkes17-Apr-08 22:31 
GeneralIrritating Crash Pin
Reelix17-Apr-08 21:53
Reelix17-Apr-08 21:53 
GeneralRe: Irritating Crash Pin
Christian Graus17-Apr-08 21:55
protectorChristian Graus17-Apr-08 21:55 
GeneralRe: Irritating Crash Pin
Reelix17-Apr-08 22:01
Reelix17-Apr-08 22:01 
GeneralRe: Irritating Crash Pin
Vasudevan Deepak Kumar17-Apr-08 22:04
Vasudevan Deepak Kumar17-Apr-08 22:04 
QuestionHow to call a javascript function in c# code Pin
G Nathan17-Apr-08 21:52
G Nathan17-Apr-08 21:52 
AnswerRe: How to call a javascript function in c# code Pin
Christian Graus17-Apr-08 21:54
protectorChristian Graus17-Apr-08 21:54 
AnswerRe: How to call a javascript function in c# code Pin
eyeseetee17-Apr-08 21:59
eyeseetee17-Apr-08 21:59 
GeneralRe: How to call a javascript function in c# code Pin
Reelix17-Apr-08 22:00
Reelix17-Apr-08 22:00 
GeneralRe: How to call a javascript function in c# code Pin
Vasudevan Deepak Kumar17-Apr-08 23:05
Vasudevan Deepak Kumar17-Apr-08 23:05 
GeneralRe: How to call a javascript function in c# code Pin
Reelix17-Apr-08 23:08
Reelix17-Apr-08 23:08 
AnswerRe: How to call a javascript function in c# code Pin
shivani2417-Apr-08 23:55
shivani2417-Apr-08 23:55 
AnswerRe: How to call a javascript function in c# code Pin
Ankit At Codeproject18-Apr-08 0:50
Ankit At Codeproject18-Apr-08 0:50 
QuestionHow to call a javascript function in c# code Pin
G Nathan17-Apr-08 21:52
G Nathan17-Apr-08 21:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.