unable to open document in pocket pc

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!
 
G

Guest

Thanks for the link, but i'm using vb.net for my pocket pc application and i
would prefer to use the createProcess()
 
A

Arun

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top