unable to open document in pocket pc

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone, i am using createProcess() to open a pocket word document in my
application. I can't seem to open the document. whenever i try to open the
pocket word document i get an error "Unable to open the document. The
document does not exist." below is a snippet of my codes

Private Sub OpenDoc()

Dim pi As New ProcessInfo

CreateProcess("pword.exe", "\My Documents\MyDoc.pwd", IntPtr.Zero,
IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, New [Byte](128) {}, pi)
End Sub


The pocket word document that i want to open is in the My Documents folder.
Any idea how do i resolve this error? Thanks!
 
Thanks for the link, but i'm using vb.net for my pocket pc application and i
would prefer to use the createProcess()
 
Try this,
CreateProcess("pword.exe", @"\My Documents\MyDoc.pwd", IntPtr.Zero,
IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, New [Byte](128) {}, pi)

Cheers,
Arun.
 
Back
Top