Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About Web.Show_Document() method 2

Status
Not open for further replies.

Cantor

Programmer
Apr 27, 2000
28
CA
Hello,

I use the Web.Show_document('My_URL', '_TARGET') in a form to call some reports located on a web server. I always use the target '_BLANK' to open my documents in a new web browser and it works well.

My problem is when I want to open more than one document in a row. I call Web.Show_document() four times with different URLs so I expect that four new web browsers will open, but it not so simple. Only one browser window opens with four documents within. So I must use the BACK button from IE to navigate between my documents. Is there a way to open four new different web browsers ?

Additional infos:
- All documents are in .PDF format
- I use Win XP
- The form calls the Web.Show_document() method from a pll library

Thanks,
Cantor
 
It sounds as though the form is not picking up the word '_Blank' as a keyword, and is instead naming the new window.

Then when you recall the method, it's inserting into the named window.

In this way, you could say target="one" and it will open a new window, but then always insert into the same window.

I'm not aware of a logged fault that implies this, but if you are hard coding your report requests, you could try just putting different targets into the call

web.show_document('first.pdf', 'one')
web.show_document('second.pdf', 'two')

or even try using a variable to hold an incremental value and insert that variable into the target (without the literal string quotes).


Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top