You need to sign in to do that
Don't have an account?
Printing an invoice information into a epson tm series ?
Is that possible, what i should do to achieve that i need to print an invoice after every purchase everyting is ready how can i add this functionally ?
How to create button
https://help.salesforce.com/apex/HTViewHelpDoc?id=defining_custom_links.htm&language=en
How to render a vf page as pdf
http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_renderas_pdf.htm
Once you generate a pdf of invoice, you can use the pdf print option to print the invoice record.
What if we need to print in a pre printed stationary? Is it possible to send the content as text directly to the printer?
Thanks in advance
Kausik
<head>
<style>
@media print {
.noprint {display:none;}
}
</style>
<p><input type="button" id="print" value="Print" class="noprint" onclick="window.print();" /></p>
<script type="text/javascript">
window.onload=function(){
window.print();
};
</script>
<!--
<script language="JavaScript">
window.setTimeout("self.close()", 1);
</script>
-->
</head>
Then create a button to print with the following onclick function:
onclick="window.open('/apex/YourVFName', 'Popup','height=600,width=600,left=100,top=100,scrollbars=yes,toolbar=no,status=no');"
and you can configure firefox to print without asking for confirmation. Hope it helps !
I am having trouble with the font as it does not print correctly.... Using the Epson lx350
Where you able to implement this in Salesforce? I'm trying to do exactly the same thing.