Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a WebPage in ASP?

Status
Not open for further replies.

PogoWolf

Programmer
Mar 2, 2001
351
US
Hey all.. I'm trying to figure out an issue, and I think useing an ActiveX control is the only way of doing it.. But I wanted to ask here first. =)

What I'm trying to pull off, is to allow a user to be able to use a webpage (Via ASP) to enter multiable sets of data, save all that data to a Database.. but then print all of the data to the users default printer. From either that or another ASP Page.. Basicly to make it fully client side.

I understand how to do everything except printing to the printer itself without ANY user interaction. I know the I can use something like Document.print in JavaScript but this would require the screen to refresh and if the user has like 20 items to print.. that'll be a Pain on them, me, and the server. =)

and that's what I'm trying to work around..

anyone have any ideas about how to go about pulling this off?


---===///The PogoWolf\\\===---
Darkness..Bleakness..Plastic forks..?

 
Hello,

If you're doing it over an intranet, or via a secure connection, you can use the free version of ScriptX go to to check it out. The free version will only let you do it client side.
If you're not doing it over an intranet, or via a secure connection, and have the cash, I'd recomend looking at the non-free versions of ScriptX.

Earme
 
you could also set the contents of the page be redirected to ms word (presuming of course that they have word 97 or above) by using

response.Content-type = "application/msword"

The above is from memory and might be a little off.
 
so then what would be the proper way to send a list of peoples names and address's to word 2000 and have it so it can print them up on labels? What would the way to make a connection to the label part of word and have it auto insert the info on a standard avery label?
 
Im not sure if this is the proper way of doing it - ou could probably use something like Crystal Reports (which I havent used but have heard is quite good) to get a lot more flexibilty etc. This is possibly the cheapest option if your clients are going to have MS Word anyway. I havent done this myself but as far as I can see, you have two options,

1. Create a word document to print out avery labels, save it in HTML format and see what is being done to try and mimic that. or

2. set up some sort of macros on the word side to automatically set up the labels etc once they have got the data in word.
 
Do you know how to send the data to word. Say, they check off all the people from the list that they want to be printed on labels, then how do I send that information to word for it to interact with.
 
If you can display what you want displayed / filtered as a HTML page, it can be piped to word.
 
I tihk that word might be the best way.. but will the

'response.Content-type = "application/msword"'

LOAD Word into memory, and then print?

I'm trying to make it as 'hands off' for the user as possible.

---===///The PogoWolf\\\===---
Darkness..Bleakness..Plastic forks..?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top