Forum Moderators: open

Message Too Old, No Replies

ASP to Word for Labels?

has anyone done this?

         

txbakers

10:18 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know you can create a Word document within ASP.

Has anyone ever done it and formatted labels at the same time? I haven't played much wtih it.

I have made nice Excel spreadsheets directly from the database through ASP.

this is for classic ASP, not .NET

MozMan

10:58 pm on Sep 22, 2004 (gmt 0)

10+ Year Member



If I understand what you are looking for, it's actually pretty simple...

start your ASP with:

Response.Buffer = True
Response.ContentType = "application/vnd.ms-word"
Response.AddHeader "content-disposition", "inline; filename = WhatICallthedoc.doc"

Then simply do your hodgepodge of html and response.writes, with whatever style references, etc...

txbakers

11:49 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks, that's how you get the Word doc, but what about the special formatting for labels?

Easy_Coder

1:51 am on Sep 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i've done it from a vb6 winform but I used a Word Template (.dot) file that I used to spit out the copies.

do you want the code?