Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to take print out from crystal report to dot matrix printer, but it taking too much of time to take print, and i have got an idea from my hardware person that i shared here, You can take print out from batch file or push your crystal report to LPT Port1 directly. And i have already designed and i have no time to change as batch file, so please tell me how to push our crystal report into LPT port1 ?

Thanks in advance...
Posted

You don't work directly with ports. You just install the printer in the system, and it communicates with the OS according to how it is supported. You should not do anything else. This is how this OS works. You did not provide any information which would help to understand what's so slow, but you should understand that both matrix printers and LPT (not even present on most modern computers) are inherently too slow.

—SA
 
Share this answer
 
CrystalReports will try to print the report through a Windows Driver for the target printer which uses Windows API graphic system that is somehow overkill for dot matrix printing performance. You can bypass that by exporting the report to TXT using CrystalReports (http://social.msdn.microsoft.com/Forums/en-US/aff77de4-0bd0-4f73-9041-755e6dbd8308/crystal-reports-export-to-text?forum=vscrystalreports[^]) and then send that txt right to the LPT port by using http://support.microsoft.com/kb/322091[^]
 
Share this answer
 
Comments
peer mohammed.A 6-Jan-14 23:32pm    
Dear Marc Gabrie,
Thanks for your reply, I have query in this, as per the above solution each and every time i have to convert the crystal report file into text format for taking print out, is it so ?

Thanks in advance
Marc Gabrie 7-Jan-14 10:23am    
Sorry but I don't understand your question at all. Anyway, yes, you have to export the report to txt before sending it to the printer through the LPT port.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900