|
-
Nov 2nd, 2000, 08:04 AM
#1
Thread Starter
Lively Member
Hi,
I'm using the WebBrowser control in VB5 to display a page dynamically created from an Access report.
I want the user to be able to select my Save As menu/toolbar item in order to specify a drive/path/filename and save the page currently in the browser to a location of their choice (the page is overwritten each time the report is generated and will be different the next time it's opened).
I'm currently using the Common Dialog to allow them to specify a drive/path/filename and then using the filecopy statement to copy the file (Statement.htm) to the specified path.
Does anyone know of a more direct way of doing this?
Best regards,
Rob Brown.
-
Nov 2nd, 2000, 02:28 PM
#2
Fanatic Member
How's a single line for direct? This doesn't even require a common dialog control in the app:
Code:
WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER
You can also do other neat things with ExecWB, such as using OLECMDID_SELECTALL to select all the stuff on the page, and OLECMDID_PRINT to print it. When you type in the ExecWB thing, you'll see a listing of these constants pop up.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|