Click here to Skip to main content
15,922,574 members
Home / Discussions / Web Development
   

Web Development

 
GeneralWeb Service Typed DataSet issues Pin
TravisMerkel24-Oct-03 14:18
TravisMerkel24-Oct-03 14:18 
GeneralRe: Web Service Typed DataSet issues Pin
TravisMerkel26-Oct-03 13:03
TravisMerkel26-Oct-03 13:03 
Generalreturn to previous page Pin
Oleg_S24-Oct-03 10:24
Oleg_S24-Oct-03 10:24 
GeneralRe: return to previous page Pin
Paul Watson24-Oct-03 12:23
sitebuilderPaul Watson24-Oct-03 12:23 
GeneralRe: return to previous page Pin
Roger Wright24-Oct-03 14:28
professionalRoger Wright24-Oct-03 14:28 
QuestionDon't want to install IIS locally- how are your development environments set up? Pin
ThomasH124-Oct-03 5:50
ThomasH124-Oct-03 5:50 
GeneralDOM + replaceChild Pin
jerry0davis23-Oct-03 5:29
jerry0davis23-Oct-03 5:29 
GeneralHelp With Word Automation Pin
Sokar23-Oct-03 3:58
Sokar23-Oct-03 3:58 
I could really use some help with a problem I am having using Word Automation. Using ASP I have created an Online Reports Website were our Project Managers go and upload their status reports to the website itself. My boss wants me to combine the single reports into one big report as they are being uploaded to the site. The only way that I can figure out to do it is with Automation. I have never done it before or for that matter heard of it before. I have this so far.

set objWord = CreateObject("Word.Application")
set objAppendFileFSO = CreateObject("Scripting.FileSystemObject")
if objAppendFileFSO.FileExists(strAppendFileName) then
Set newReport = objWord.Documents.Add(strReadFile)
set completeReport = objWord.Documents.Add(strAppendFileName)
newReport.Selection.WholeStory()
newReport.Selection.Copy()
completeReport.Selection.PasteAndFormat(wdPasteDefault)
completeReport.InsertPagebreak()
completeReport.ActiveDocument.Close()
newReport.ActiveDocument.Close()
else
Set newReport = objWord.Documents.Add(strReadFile)
set completeReport = objWord.Documents.Add()
newReport.ActiveWindow.Selection.Range.WholeStory
newReport.ActiveWindow.Selection.Range.Copy
completeReport.Add.Content.Paste
'completeReport.ActiveWindow.Selection.PasteAndFormat(report)
completeReport.InsertPagebreak()
completeReport.SaveAs("D:\Inetpub\wwwroot\CJISReport\CJISreportPage\" & strYear & "\monthlyList\" & strmonth & "\MajorProjects\All Reports.doc")
completeReport.ActiveDocument.Close()
newReport.ActiveDocument.Close()
end if

The if is to determine if it was the first report of the month. It will create the new report if so. There is different code in them cause I have been trying different things with each of them and unfortuenetly none of them work. It just tells me this error: Permission Denied. It tells me this for the line "end if". I have no Idea what this means.

Any help would be really apprecieated.
Thank you in advanced.

Sokar

ctl - alt - del
if that dosen't work,
bang your head on the keybord.
GeneralRe: Help With Word Automation Pin
Sage23-Oct-03 8:51
Sage23-Oct-03 8:51 
GeneralRe: Help With Word Automation Pin
Sokar23-Oct-03 9:01
Sokar23-Oct-03 9:01 
GeneralRe: Help With Word Automation Pin
Sage23-Oct-03 9:10
Sage23-Oct-03 9:10 
GeneralRe: Help With Word Automation Pin
Sokar23-Oct-03 9:31
Sokar23-Oct-03 9:31 
GeneralRe: Help With Word Automation Pin
Sage23-Oct-03 9:54
Sage23-Oct-03 9:54 
GeneralRe: Help With Word Automation Pin
Sage23-Oct-03 10:23
Sage23-Oct-03 10:23 
GeneralRe: Help With Word Automation Pin
Sokar23-Oct-03 10:49
Sokar23-Oct-03 10:49 
Generalasp.net application does not work under a different web site from the default web site Pin
Mertli Ozgur Nevres22-Oct-03 23:46
Mertli Ozgur Nevres22-Oct-03 23:46 
GeneralRe: asp.net application does not work under a different web site from the default web site Pin
Paul Watson23-Oct-03 1:07
sitebuilderPaul Watson23-Oct-03 1:07 
GeneralRe: asp.net application does not work under a different web site from the default web site Pin
Sage23-Oct-03 8:56
Sage23-Oct-03 8:56 
GeneralI have a simple kind of stupid problem but I can't seem to figure out how to fix it. Pin
nssone22-Oct-03 18:38
nssone22-Oct-03 18:38 
GeneralRe: I have a simple kind of stupid problem but I can't seem to figure out how to fix it. Pin
J. Dunlap22-Oct-03 19:07
J. Dunlap22-Oct-03 19:07 
GeneralRe: I have a simple kind of stupid problem but I can't seem to figure out how to fix it. Pin
nssone23-Oct-03 0:25
nssone23-Oct-03 0:25 
QuestionNetscape: Changing the hyperlink text? Pin
Paul Riley22-Oct-03 13:28
Paul Riley22-Oct-03 13:28 
AnswerRe: Netscape: Changing the hyperlink text? Pin
Paul Watson23-Oct-03 1:09
sitebuilderPaul Watson23-Oct-03 1:09 
GeneralRe: Netscape: Changing the hyperlink text? Pin
Paul Riley23-Oct-03 1:49
Paul Riley23-Oct-03 1:49 
GeneralinnerHTML Pin
Paul Watson23-Oct-03 1:57
sitebuilderPaul Watson23-Oct-03 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.