Update on my ASP to reproduce forms - Getting there!

They have: 76 posts

Joined: Apr 1999

After all the helped I recieved after my first question I thought I'd give you guys some more food for thought!

Problem:

I'm using the WebBrower control to access the OLE save command, using the following syntax (VBScript):

olecmd = 4 ' Saveas Command
oleparam = 1 ' Prompt user
pvain = "Form Name" 'File Name to Save as
pvaout = url 'not using

WB.ExecWB olecmd, oleparam, pvain, pvaout

It works fine in IE4 + IE5, the problem is only IE5 seems to recognize the pvain argument. This argument is what is displayed in the save as prompt which displays "Form Name" in IE5 and the actual ASP name in IE4. This is important because the page is an asp, and it has to be saved as an htm page. I know it's simple enough for the user to change this themselves but I have to make this as automated as I can.

Any help with this would be appreciated since I've wasted almost a day on this problem already.

Thanks,
PJ

They have: 5,633 posts

Joined: Jan 1970

PJ,
Unfortunatly, I haven't worked much with the OLE save command so I am not going to be of much help. Sad

Is there a way you could point us to a example of what is happening? I am much better at debugging (just ask JP Wink) if I can see the problem although I can't guarantee that I will be able to help.

----------
Dynamic Internet Solutions : http://www.dids.com
UNIX and Windows NT Hosting

They have: 76 posts

Joined: Apr 1999

Chad,

Thanks for the quick reply.

Unfortunately all my work is on the company's Intranet which isn't accessable from the Internet and I'm not allowed to take any work outside of that environment, even though I made it, they own it Sad

It's pretty simple to simulate though, just make a blank page, insert the VBScript above with a Sub button_onclick <insert script> Sub end. I left out the error handling so you might want to put some in if you want. Insert a button named button (I love saying that) and click away!

I refuse to believe that IE4 doesn't support the pvain argument, the WebBrowser control has been around since IE3!

If you find anything, anything at all... let me know.

Thanks,
PJ

They have: 76 posts

Joined: Apr 1999

Whoops, I forgot to include the actual object Wink Here it is:

<OBJECT ID="WB" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>

Just put that anywhere in the <body>.

Sorry about that,

PJ

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.