Ok I know how to open another
Process.Start("MyOtherApp.exe")
I want to have the user click a button and open the following
c:\\myapp\mypowerpoint.ppt
Ok I know how to open another
Process.Start("MyOtherApp.exe")
I want to have the user click a button and open the following
c:\\myapp\mypowerpoint.ppt
I want open a specfic powerpoint doc from vb.net
Pajaro
strange i do not see it in the list, I see my images but not the ppt
I have added it and I dont see an option to add any other files
baskark
Ok I have added a folder to my application how can I point to the ppt in that "doc" folder
what would the path be
TheWardy
ok i added a new folder it went into my images folder ie \images\docs
when I try to put \images\docs\myfile.ppt
the path I see is really strange(this the path I get after I did the install on my computer) using the one step install
cdocuments and settings\myname\local settings\apps\2.0\cerhkmoc.jog\cvbbkuer.z3a\open..tion+1e694584-0001.000_834098358\image\docs\myfile.ppt.
Mandip
I'm glad you got it working
Andrej
Tobias Boehler
You are probably installing your application using ClickOnce deployment, so try locating your application directory using Deployment namespace:
Dim filePath As String = Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory + "\doc\myfile.ppt"Also make sure that powerpoint file is deployed with the application as a "Data File" [this is a file setting you'll find under the Application files in Publish settings dialog]
Let me know if you need further assistance.
Andrej
kymaita
Thanks that worked great, i could not find any info on this in the docmentation or (10) books I have purchased 3 of which are MSPRESS
MitchMc
Open My Project (settings) | Publish tab.
In Install Mode and Settings section you'll find a button named Application Files.
Click on it and another dialog appears.
In the file list, locate your custom files and mark them (select from Publish Status combobox) as Data File.
Andrej
Grant Jenkins
Javfarary
Hi,
executing Process.Start("c:\\myapp\mypowerpoint.ppt") should open the powerpoint file with the default application.
Andrej
ashwin_k_s
Application.StartupPath contains the path to the folder where your executable is located. To locate the file in the application's subfolder "doc", use:
Dim filePath As String = Application.StartupPath() + "\doc\myfile.ppt"
Process.Start(filePath)Andrej
IZON
angjbs
In solution explorer, set ppt file's Build Action property to Content, then you'll see it in the list.
Andrej