Ask a Question related to ASP.NET General, Design and Development.
-
Vijay #1
Problem with writing ms-word hheader through ASP.NET(VB.NET)
Hi,
I have to generate a word or rtf file on the fly whould
have a Header and footer both but i m not able to include
the header and footer in the document can anyone suggest
me how can i do that.
Currrently i am having a template of word document which
has a header ad footer and in that i m having tags which i
m replacing with my data.But when i m genrating the
document its not including the header and footer in the
document.How can i do that.
Any suggestion or example given willl be highly
appreicated.
thaanks
vijay
Vijay Guest
-
Problem writing to file.....charset I think
I am having a problem writing to a file. I am trying to write the following to a file <cfset text = "#chr(1)##chr(0)##chr(8)#"> <cffile... -
Writing Word with CFContent
I can write a simple word document using cfcontent. However, I do not seem to be able to impose any formatting on it. Does anyone out there have any... -
problem writing a file
Hi, I'm really stuck with this one - wondering if you can spot the problem? I think that it's a webserver problem that goes deeper than web.config.... -
Writing a pdf from word using acrobat 4 vs 6 - Missing Graphics
I want to write a version 4 compatible pdf from word. The pdf will be viewed via an internet browser. If I use acrobat 4 no problems. If however I... -
Problem with writing on image
Ashariel-- The image needs to be a background, either on the page or inside a table, table cell, or layer. Don't insert the image, but assign the... -
Jurjen de Groot #2
Re: Problem with writing ms-word hheader through ASP.NET(VB.NET)
Vijay,
I've done this using bookmarks, the code below is written using VB6 but the
references to the Ms-Word object should work in dotnet as well !!
Hope this helps
Jurjen de Groot,
G.I.T.S. Netherlands.
Dim objWord as Object
Set objWord = new Word.Application
// set seekview to PageHeader
objWord.ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
// Find your bookmarks in the header/footer here and insert text accordingly
objWord.ActiveDocument.Bookmarks("HeaderClientName ").Select
objWord.Selection.TypeText Text:="ClientName"
// set seekview to Main Document
objWord.ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
// Find your bookmarks in the main document and insert text accordingly
objWord.ActiveDocument.Bookmarks("MainClientName") .Select
objWord.Selection.TypeText Text:="ClientName"
"Vijay" <vijay@healthnettech.com> wrote in message
news:0d4901c34543$ad9a1eb0$a301280a@phx.gbl...> Hi,
>
> I have to generate a word or rtf file on the fly whould
> have a Header and footer both but i m not able to include
> the header and footer in the document can anyone suggest
> me how can i do that.
> Currrently i am having a template of word document which
> has a header ad footer and in that i m having tags which i
> m replacing with my data.But when i m genrating the
> document its not including the header and footer in the
> document.How can i do that.
> Any suggestion or example given willl be highly
> appreicated.
>
> thaanks
> vijay
Jurjen de Groot Guest



Reply With Quote

