function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rahul BorgaonkarRahul Borgaonkar 

Dot matrix out put using Visualforce

Hi,

I want to print account and its contacts on dot matrix printer. Is it possible to do it using visualforce renderas PDF option.
Please find my VF code.
 
<apex:page standardController="Account" sidebar="false" id="pageid" renderAs="PDF">
    <apex:outputtext value="{!account.name}" style="font-family: 'Courier New'; margin: 100;"/>
    <apex:form id="formid" >
    <apex:dataTable value="{!account.contacts}" var="contact">
        <apex:column headerValue="Employee Name" value="{!contact.name}" style="font-family: 'Courier New'; margin: 0;"/>
    </apex:dataTable>
    </apex:form>
</apex:page>
Please help.

Thanks,

Rahul
 
Sunil MadanaSunil Madana
Hi Rahul, PDF files do not print properly on Dot Matrix printer. You have to save the file as "RTF" format in order to print using Dot matrix printer. Click this Link (http://www.experts-exchange.com/questions/27110248/Printing-pdf-in-dot-matrix-printer.html" target="asdasd) to see the comments.

Thanks, Sunil.
Rahul BorgaonkarRahul Borgaonkar
Hi Sunil, The solution link is paid service. Is it possible to paste actual solution on community. Best Regards, Rahul Rahul Suresh Borgaonkar
Sunil MadanaSunil Madana
Hi Rahul, Sorry for the late reply.
I think the below links should help you.

https://forums.adobe.com/thread/1106128?tstart=0
https://answers.acrobatusers.com/Can-t-get-PDF-to-print-clearly-with-a-Dot-MATRIX-printer-Printronix-printer-q236858.aspx

If the above suggestion worked, mark the answer as "Best Answer" so that our community users can refer to this in the future.
Thanks, Sunil