linking pdf document

F

friend

Hello all,

I am trying to link to a pdf document as follow:

System.Diagnostics.Process.Start("C:\Program Files\xxx\test.pdf)

but when i installed my .msi file on other system the link doesnt work
if it is not a english operating system.

how to resolve this...thanks for any suggestion
 
F

friend

Hello all,

I am trying to link to a pdf document as follow:

System.Diagnostics.Process.Start("C:\Program Files\xxx\test.pdf)

but when i installed my .msi file on other system the link doesnt work
if it is not a english operating system.

how to resolve this...thanks for any suggestion

got it........ thanks
 
F

Family Tree Mike

friend said:
got it........ thanks

I hope the solution involved something along the lines of:

dim f as string
f = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
dim fn as string
fn = Path.Combine(f, "xxx\test.pdf")
Process.Start(fn);

Mike
 
F

friend

I hope the solution involved something along the lines of:

dim f as string
f = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
dim fn as string
fn = Path.Combine(f, "xxx\test.pdf")
Process.Start(fn);

Mike

yes...you are right....thanks anyway
 

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