p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 10th, 2005, 12:53 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 8th, 2006, 12:20 PM
Registered User
 
Join Date: Aug 2006
Location: Bolton, MA, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old April 29th, 2008, 08:15 AM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
    now with infoPath 2007 we have picture Control.

Thanks..

Net norvin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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



All times are GMT -4. The time now is 07:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc