CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 How to send output to a printer in CC?

Print topic Send  topic

Author Message
Frank Rocco
Posted: 08/14/2001, 11:38 AM

Hello,

I need to read data from a table and send it to a printer.
Using ASP and CC latest version, what code is necessary to print?

Thanks
Frank

CodeCharge
Posted: 08/14/2001, 2:50 PM

As far as I know, you can't.
The ASP program is processed on the Server, so that anything that you print
automatically may only be printed on a printer connected to the server.
It may be possible with some tricks, like for example displaying the page
and then using JavaScript to print it, but it would still require user
intervention, just like asking them to press Print button.
If you know of any other web application that can do this, please let us
know and we can try to figure out how it was done.

Adam S.
YS/CC


"Frank Rocco" <farocco@hotmail.com> wrote in message
news:9lbr77$hqr$1@news.codecharge.com...
> Hello,
>
> I need to read data from a table and send it to a printer.
> Using ASP and CC latest version, what code is necessary to print?
>
> Thanks
> Frank
>
>

Dante Sandigan
Posted: 08/14/2001, 6:49 PM

I use Crystal Reports web component in doing print jobs. It may incur
additional cost but it does the job well.


"CodeCharge" <support@codecharge.com> wrote in message
news:9lc6ec$94a$1@news.codecharge.com...
> As far as I know, you can't.
> The ASP program is processed on the Server, so that anything that you
print
> automatically may only be printed on a printer connected to the server.
> It may be possible with some tricks, like for example displaying the page
> and then using JavaScript to print it, but it would still require user
> intervention, just like asking them to press Print button.
> If you know of any other web application that can do this, please let us
> know and we can try to figure out how it was done.
>
> Adam S.
> YS/CC
>
>
> "Frank Rocco" <farocco@hotmail.com> wrote in message
>news:9lbr77$hqr$1@news.codecharge.com...
> > Hello,
> >
> > I need to read data from a table and send it to a printer.
> > Using ASP and CC latest version, what code is necessary to print?
> >
> > Thanks
> > Frank
> >
> >
>
>

Don Oldenburg
Posted: 08/15/2001, 5:16 AM

Okay, I've used the following Java Script. All it does though is triggers
your browser print function and your printer option window pops up.

<script type="text/javascript" language="javascript">
function doprint(form)
{
window.print();
}
</script>



And then create a button to activate the print...

<form name="frmprint" method="post">
<input type="button" class="PrinterButton" name=btnprint" id="btnprint"
value="print" onclick="doprint(document.frmprint)"
onmouseover="window.status='print'; return true;"
onmouseout="window.status="";return true;">
</form>


Most of that was from memory-- hope I didn't miss anything..

Don






"Frank Rocco" <farocco@hotmail.com> wrote in message
news:9lbr77$hqr$1@news.codecharge.com...
> Hello,
>
> I need to read data from a table and send it to a printer.
> Using ASP and CC latest version, what code is necessary to print?
>
> Thanks
> Frank
>
>

Frank Rocco
Posted: 08/15/2001, 6:51 AM

Thanks for the info, I'll check out Crystal.

Regards,
Frank

Frank Rocco
Posted: 08/15/2001, 6:56 AM

Don,

Thanks for the code.

Regards,
Frank


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.