James
Mon Mar 01 18:30:14 CST 2004
maybe you can help with another related question. i want to use this script
to print a asp page that a user gets to the web servers printer. what would
be the best way to do that? should i save the asp out put to the server as
file and then print it or can i save it as a object or varable and then
print that?
--
5khzgjf9e001@sneakemail.com
"James" <See.My.Sig@The.Bottom.com> wrote in message
news:NpQ0c.6271$Hg4.750@chiapp18.algx.net...
> Thank you that worked!
>
> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
> news:4043CD11.93175ECC@hydro.com...
> > James wrote:
> >
> > > how come when i print programicly my printer says "data received" and
it
> > > won't print until i press the GO button on the printer? my printer is
a
> HP
> > > laser jet 5
> > >
> > > Set objFS = server.CreateObject("Scripting.FileSystemObject")
> > > Set objPrinter = objFS.CreateTextFile("\\printserver\printername",
True)
> > > objPrinter.Write("testing printing")
> >
> > Hi
> >
> > Try to add a FormFeed (Chr(12)) at the end to tell the
> > printer to feed the sheet, like this:
> >
> > objPrinter.Write("testing printing" & vbFormFeed)
> >
> >
> > --
> > torgeir
> > Microsoft MVP Scripting and WMI, Porsgrunn Norway
> > Administration scripting examples and an ONLINE version of the 1328 page
> > Scripting Guide:
> >
http://www.microsoft.com/technet/community/scriptcenter/default.mspx
> >
> >
>
>