Wrox Programmer Forums
|
BOOK: Professional InfoPath 2003
This is the forum to discuss the Wrox book Professional InfoPath 2003 by Ian Williams, Pierre Greborio; ISBN: 9780764557132
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional InfoPath 2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2005, 11:53 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default External Documents

Hi,

I have a form on which I would like to have a list of links to external documents. These documents may be word, pdf, jpg and other files.

I have tried using the hyperlink control with a file reference, i.e.:
file:///c:\myfile.doc, but I get 'access denied'.

I have also tried using javascript:

var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Run("c:\\myfile.doc");

This works in preview, but in published form I get 'Automation server can't create object'

Does this have something to do with the form trust? Does anyone have any ideas how I could have a simple link to an external file?

Thanks,
Sean.

 
Old August 8th, 2006, 11:20 AM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jakistra
Default

Hello,
I'm having a similar problem with the script code in InfoPath:
var objWS = new ActiveXObject("WScript.Shell");
var myDocFolder = objWS.SpecialFolders("MyDocuments");

I've updated the Intranet security settings to enable non-signed ActiveX controls, but still get the Automation error. Any other suggestions?

thanks,
Jake

Quote:
quote:Originally posted by spolacsek
 Hi,

I have a form on which I would like to have a list of links to external documents. These documents may be word, pdf, jpg and other files.

I have tried using the hyperlink control with a file reference, i.e.:
file:///c:\myfile.doc, but I get 'access denied'.

I have also tried using javascript:

var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Run("c:\\myfile.doc");

This works in preview, but in published form I get 'Automation server can't create object'

Does this have something to do with the form trust? Does anyone have any ideas how I could have a simple link to an external file?

Thanks,
Sean.

jake
 
Old April 29th, 2008, 07:15 AM
Registered User
 
Join Date: Apr 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
    now with infoPath 2007 we have picture Control.

Thanks..

Net norvin





Similar Threads
Thread Thread Starter Forum Replies Last Post
clustering documents iralala Java Databases 0 September 21st, 2008 11:31 PM
Selecting Data from External Documents tslag XSLT 2 July 24th, 2006 10:35 AM
Protect my documents Tech4U ASP.NET 1.0 and 1.1 Professional 2 July 6th, 2006 11:32 PM
Office Documents Hunter HTML Code Clinic 6 October 20th, 2004 03:14 PM
comparision of two documents anuradhad Access VBA 0 July 22nd, 2004 12:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.