I need a little help.
I have added a button to my VB program to launch an IE window. It works fine but in order to make it work I put the file out on the internet and I call it there.
How would I do it locally?
launching html from VB
launching html from VB
|
|
Mar 1 2006, 09:17 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]()
Junior Member
227 posts Joined: Dec 2005 |
I need a little help.
I have added a button to my VB program to launch an IE window. It works fine but in order to make it work I put the file out on the internet and I call it there. How would I do it locally? |
|
|
|
|
|
Mar 2 2006, 07:21 AM
Show posts by this member only | Post
#2
|
![]() ![]()
Junior Member
105 posts Joined: Jul 2005 |
|
|
|
Mar 2 2006, 08:11 PM
Show posts by this member only | Post
#3
|
|
Elite
1,828 posts Joined: Jan 2003 |
|
|
|
Mar 8 2006, 02:45 AM
Show posts by this member only | Post
#4
|
![]() ![]()
Junior Member
227 posts Joined: Dec 2005 |
Here is what I am doing.
When the user clicks on the help button in my Visual Basic Application, I call this function: ShellExecute 0, "Open", "www.gelsana.com/Dmm_Ri4152A_BETA/Vendor/Doc/m4152a.pdf", 0, 0, SW_SHOWNORMAL But that means I have the pdf file out on the internet. I want it to be on their comuter when they lanuch ShellExecute |
|
|
Mar 8 2006, 09:20 AM
Show posts by this member only | Post
#5
|
|
Elite
1,120 posts Joined: Jun 2005 |
Athono,
The ShellExecute API is act like the double click and some context menu operation (eg: Edit, View & etc) on the particular file. For you to open PDF file locally, instead of pointing to URL, you can point it to a local file. Happy Coding |
|
|
Mar 8 2006, 10:22 AM
Show posts by this member only | Post
#6
|
|
Elite
1,828 posts Joined: Jan 2003 |
QUOTE(Athono @ Mar 8 2006, 02:45 AM) Here is what I am doing. then, just enclose the pdf in your application and call it there?When the user clicks on the help button in my Visual Basic Application, I call this function: ShellExecute 0, "Open", "www.gelsana.com/Dmm_Ri4152A_BETA/Vendor/Doc/m4152a.pdf", 0, 0, SW_SHOWNORMAL But that means I have the pdf file out on the internet. I want it to be on their comuter when they lanuch ShellExecute ShellExecute 0, "Open", "./m4152a.pdf", 0, 0, SW_SHOWNORMAL if you place the m4152a.pdf in the same folder with your application. Anyway, I believe IE will download the file into the cache. Technically, it is still accessing the local one. By the way, beside using ShellExecute, you can also use CreateProcess which offer more control. You can even use VBA for Acrobat, like this one. http://www.igetit.net/SampleCode/Adobe_Acrobat_vba_code.asp |
|
|
Mar 10 2006, 11:01 AM
Show posts by this member only | Post
#7
|
![]() ![]()
Junior Member
227 posts Joined: Dec 2005 |
Thanks, all.
|
| Change to: | 0.0206sec
1.55
5 queries
GZIP Disabled
Time is now: 23rd December 2025 - 01:13 PM |