Link to home
Create AccountLog in
Avatar of Naanan
NaananFlag for United States of America

asked on

Open PDF in new Browser window

Hi,

So I am trying to open a .pdf document in a new browser window the path is
\\wdres01\share\Released Documents\Drawings, Lettered (& DLs)\PCM\PCM-010-B.pdf

If I paste that path exactly like that into an IE6 url it pulls the document just fine. However when I use this code attached to a buttons OnClick attribute it can't find the file

Me.dwgButton.Button.Attributes.Item("onClick") = "window.open('\\wdres01\share\Released Documents\Drawings, Lettered (& DLs)\PCM\PCM-010-B.pdf', '_blank', 'width=900, height=700, resizable, scrollbars, modal=yes'); return false;"

I am sure there is just some syntactical thing I am missing here.

Any Help?
ASKER CERTIFIED SOLUTION
Avatar of Lolly-Ink
Lolly-Ink
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Naanan

ASKER

Very cool, I knew I was just missing something stupid.

Thanks a ton