Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual 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 Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old June 23rd, 2003, 09:41 AM
Zoe Zoe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Oxford
Posts: 3 Zoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy word .doc upload to web unsucessful..

Hi there,

I am trying to attach a word doc to a web upload and it is mostly unsucessful (annoyingly).

I am working with someone elses code, and the main problem in finding the error is that I'm not that familiar with uploading to the web.

If anyone has any suggestions from looking at the code, or any ideas of where to read up about uploads (need to be able to send text docs, word docs and jpgs etc), then that would be great too!

Cheers, Zoe

Set wrdAD = New Word.Application
wrdAD.Visible = True
wrdAD.WindowState = wdWindowStateMaximize
wrdAD.Documents.Open EASY_WORD_TEMPLATES_LOCATION & "\AdvertListing.doc", ReadOnly:=True
If Not frmAdverts.ListView1.ListItems.Count = 0 Then
Call MergeAdvert(rstSalesParticulars, rstProperty, adStyleAdvert, wrdAD)
End If
If Dir("C:\Temp", vbDirectory) = "" Then
MkDir "C:\Temp"
End If
wrdAD.ChangeFileOpenDirectory "C:\Temp\"
wrdAD.ActiveDocument.SaveAs filename:="web2.doc", FileFormat:=wdFormatDocument, _
LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
wrdAD.Quit wdDoNotSaveChanges
Set wrdAD = Nothing

For i = 0 To 500
DoEvents
Next

Reply With Quote
  #2  
Old June 24th, 2003, 04:31 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Are you uploading from a remote site? Is the client on a web browser?
__________________
El éxito consiste en una serie de pequeñas victorias día a día

MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html

Reply With Quote
  #3  
Old June 25th, 2003, 05:40 AM
Zoe Zoe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Oxford
Posts: 3 Zoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
upload

when you say am i posting from a remote site, do you mean am I sending the file from somewhere other than the website? in which case yes.

what do you mean by is the client on a web browser? I am sending test files through to our ftp website just to see what arrives and if its complete...

another question for you, why would the word documents that i'm sending come up with a download box, but never finish downloading - mainly. but just once I have seen a whole complete .doc, this confuses me as it generally doesnt work but has been seen once..!

cheers, Zoe

Reply With Quote
  #4  
Old June 25th, 2003, 07:39 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
My line of question was to determine the nature of the application. I am assuming your are using an IIS server and VBScript. I would look at this step by step. Step one: is the directory getting created? If not, correct. Step 2: Is the file being uploaded? If not, correct.
Are these two things happening?

Reply With Quote
  #5  
Old June 26th, 2003, 03:47 AM
Zoe Zoe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Oxford
Posts: 3 Zoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the file is being created as it is sent to c:\temp and then sent from there. when i go into temp the .doc has been created fine.

the problem is it is very inconsistent about being uploaded. I have only seen the entire file once, the rest of the time it appears to have arrived on the web site, but i cant access it. or it says its downloading it, but the downloading never ends...

the step by step bit is logical, its how to correct the code when cant find anything to compare it against. I didnt write the code to start with, and need a comparison to help me examine it with any focus.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > word .doc upload to web unsucessful..


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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway