|
From: shyPotter on 11 Mar 2008 08:03 Hi all I have to develop an application for client where I have a html template file and a word document files as input files and I need to generate a html files based on thes two input files . Word document may contain images,table,links,text etc. I am here to ask the Gurus advise. Which language should I use ? I am thinking to develop as desktop application using vb6. How I can read the word document ? Is not this good to use tags <!--teag1--> in html template file ? How I can read the word document and what is best to know which text goes where in html template ? Thanks in Advance.
From: McKirahan on 11 Mar 2008 14:01 "shyPotter" <someone(a)noone.com> wrote in message news:uS5uy$2gIHA.1212(a)TK2MSFTNGP05.phx.gbl... > Hi all > > I have to develop an application for client where I have a html template > file and a word document files as input files and I need to generate a html > files based on thes two input files . Word document may contain > images,table,links,text etc. > > I am here to ask the Gurus advise. > > Which language should I use ? > I am thinking to develop as desktop application using vb6. I would recommend VBScript. No compiling, no runtime, easily installed and maintained. > How I can read the word document ? Option Explicit Const cDOC = "C:\your_document.doc" Dim objMSW Set objMSW = CreateObject("Word.Application.8") Dim objDOC Set objDOC = objMSW.Documents.Open(cDOC) Dim strDOC strDOC = objDOC.Content objDOC.Close False objMSW.Application.Quit True Set objDOC = Nothing Set objMSW = Nothing MsgBox strDOC,vbInformation,WScript.ScriptName > Is not this good to use tags <!--teag1--> in html template file ? > How I can read the word document and what is best to know which text goes > where in html template ? I would use FSO to read the template file and save it as a variable. It could contain a tag which would be replaced by the contents of each document. Next, loop throught the folder containing the documents, read each (as above), replace the tag with the contents and write out an Web page (.htm) file.
From: Jeff Dillon on 11 Mar 2008 15:00 You are aware that Word can save as HTML. Jeff "shyPotter" <someone(a)noone.com> wrote in message news:uS5uy$2gIHA.1212(a)TK2MSFTNGP05.phx.gbl... > Hi all > > I have to develop an application for client where I have a html template > file and a word document files as input files and I need to generate a > html files based on thes two input files . Word document may contain > images,table,links,text etc. > > I am here to ask the Gurus advise. > > Which language should I use ? I am thinking to develop as desktop > application using vb6. > How I can read the word document ? > Is not this good to use tags <!--teag1--> in html template file ? > How I can read the word document and what is best to know which text goes > where in html template ? > > Thanks in Advance. > > > >
From: Bob Barrows [MVP] on 11 Mar 2008 19:00 McKirahan wrote: > Dim objMSW > Set objMSW = CreateObject("Word.Application.8") To the OP: use this technique at your own risk in server-side code. MS advises against it: http://support.microsoft.com/default.aspx?scid=kb;en-us;257757 Having said that, many people do successfully automate Office in server-side code. This is just to make you aware of the risks. -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
From: Adrienne Boswell on 11 Mar 2008 22:16 Gazing into my crystal ball I observed "Jeff Dillon" <jeffdillon(a)hotmailremove.com> writing in news:OVhw2o6gIHA.3940(a)TK2MSFTNGP05.phx.gbl: > You are aware that Word can save as HTML. > Yes, with a lot of bloat and markup errors. I don't think so. > "shyPotter" <someone(a)noone.com> wrote in message > news:uS5uy$2gIHA.1212(a)TK2MSFTNGP05.phx.gbl... >> Hi all >> >> I have to develop an application for client where I have a html >> template file and a word document files as input files and I need to >> generate a html files based on thes two input files . Word document >> may contain images,table,links,text etc. >> >> I am here to ask the Gurus advise. >> >> Which language should I use ? I am thinking to develop as desktop >> application using vb6. >> How I can read the word document ? >> Is not this good to use tags <!--teag1--> in html template file ? >> How I can read the word document and what is best to know which text >> goes where in html template ? >> >> Thanks in Advance. >> >> >> >> > > -- Adrienne Boswell at Home Arbpen Web Site Design Services http://www.cavalcade-of-coding.info Please respond to the group so others can share
|
Next
|
Last
Pages: 1 2 3 Prev: Executing a VBS file from an ASP page Next: Create output of the ASP file in PDF file |