Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 10th, 2009, 02:48 AM
Ismailc Ismailc is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 90 Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 34 m 39 sec
Reputation Power: 5
Question VBScript - Link to file on server, open in original state & readwrite mode

Good day, I desperately need to get the following working.

I have an application that uses vbscripting as it's code developing, The two problems I have is:


1. Creating a link to open the attached file which lies on the server in it's original state.
Code:
 fileString = "<a href='upload/test.doc' target=''> View File </a>"


The problem is this open's the doc in a web page and not in Microsoft Word.
I need it to open the files in its state being Word,Excel etc.

2. When opening the file in its original State the file must be readwrite.
The user must be able to edit & save the file on the server.
so the user can make the changes & just click save.

Please help - i need to get it going

Reply With Quote
  #2  
Old November 10th, 2009, 06:13 PM
June7 June7 is offline
Contributing User
Click here for more information.
 
Join Date: Apr 2009
Location: The Great Land
Posts: 1,118 June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 35 m 17 sec
Reputation Power: 240
I do this in VBA/Access to open an Excel document. First, have to open the Excel application.
Code:
Private Sub OpenExcel()
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Open("\\Fritz\Admin\STWMAT\Central Region Materials\PAVEMENT MANAGEMENT\airports\Report Production\AASP.xlsx")
'the above pathing uses UNC (Universal Naming convention), Fritz is name of server

'code to do something

oExcel.Visible = True
Set oBook = Nothing
Set oExcel = Nothing
End Sub
Don't know how might adapt to your code.

Reply With Quote
  #3  
Old November 11th, 2009, 01:41 AM
Ismailc Ismailc is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 90 Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level)Ismailc User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 34 m 39 sec
Reputation Power: 5
Question

Thank You - struggling to get it going in vbscript.

Any other ideas - please?

Reply With Quote
  #4  
Old November 21st, 2009, 01:43 PM
June7 June7 is offline
Contributing User
Click here for more information.
 
Join Date: Apr 2009
Location: The Great Land
Posts: 1,118 June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level)June7 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 35 m 17 sec
Reputation Power: 240
I binged 'vbscript Excel' and got several relevant hits. Here is one: http://www.computerperformance.co.u...Windows_fso.htm

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VBScript - Link to file on server, open in original state & readwrite mode


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek