Java Printing and Dot Matrix printer
I'm not sure if this is the right forum, but I didn't see any forum about printing.
I have gotten printing working for my application to both "real" printers and dot-matrix printers. The problem is that I want to display a print dialog box, and have my application detect whether the user selected a "real" printer or a dot-matix printer.
I've dumped out the supported DocFlavors for both kinds of printers and haven't been able to find any reliable way to determine the printer type. Has anyone found a reliable way to do this?
I need to detect the printer type becuase I use one DocFlavor to print to a dot-matrix and a different DocFlavor to print to a "real" printer.
Thanks for any help,
--Ryan
Thanks for the replies,
I would like to find some way to auto-detect this, if it is possible. I swear that I will only use the PrinterResolution class for good and not evil!! I was looking at the supported printer resolutions for the printers that are in my office here, and this is what I found:
Supported Resolutions Win32 Printer : FX-890 (my dot matrix)
24000x14400 dphi
12000x7200 dphi
12000x14400 dphi
Supported Resolutions Win32 Printer : HP LaserJet 4050 Series PS
30000x30000 dphi
60000x60000 dphi
120000x120000 dphi
Supported Resolutions Win32 Printer : HP Color LaserJet 4550 PCL 5c
60000x60000 dphiIt seems interesting that the laser jets only report resolutions that are the same horizontal as vertical, and that the dot matrix supports resolutions that are have different horz vs vert resolutions. Maybe I could use this to make a guess?
Unfortunately we don't use any native code in our application, although it could be a possibility if there is no 100% java way to auto-detect this. The vast majority of our users will be running Windows. Do you know of a way to figure this out in Windows?
Thanks,
--Ryan
Similar Messages
-
Horizontal Vertical and logo is not printed in dot matrix printer
Hi All
i am printing a smartform in dot matrix printer
the form has horizontal vertical line
table lines , and logo
but when i print in Dot matrix printer
the line and logo is not display
Please say me how i design for it
wheather It is printer or smartform design problem?
Regard
RitenHi riten,
The Printer settings is not supporting the horizontal and vertical line ..check with the basis team for the printer settings.
Regards,
Sravanthi -
Printing on Dot Matrix Printer
Hi
I am using JPS for printing, but to print on dot matrix printer, conventionally you print character at perticular row & col. Using Java Print Services how can I print a report to Dot Matrix Printer.
Thanks in AdvanceAnybody knows I am also facing same Problem.
Thanx -
Printing in Dot Matrix Printer
Hi to all,
As we know that the dos matrix printer supports dos prompt and thus printing speed and
life of the printing head is comparatively more than what we print the same in graphical format.
So when I tried to print from SAP Bone in dot matrix printer, the printing speed is very slow and quality of printout is not good enough.
Any clarifications on this regard would prove very helpful to me.
Regards,
Aditya
Consultant Business solutions.Do you use one of this printer types:
Dot Matrix, Printer, Needle Printer, Citizen ProDot 300 , Oki Microline
, Epson FX880, Epson FX890 ?
Here the stepwise I have tried :
In order to print using Dot Matrix printers, follow the below
instructions:
1. Run SAP Business One.
2. Click the upper menu 'File' and select 'Page Setup'.
3. The Print Setup window opens. Under 'Paper', in the field 'Size', select 'Letter' from the drop down menu.
4. Click OK to confirm your selection.
5. On your desktop, click Start => Settings => Printers.
6. Right click on the required Dot Matrix printer and select 'Printing Preferences...'.
7. Click the 'Paper/Quality' tab page and click the 'Advanced' pushbutton.
8. Under'Paper/Output'=> 'Paper Size', click on the underlined paper size(e.g. A4) and select 'Letter' from the drop down menu.
Note that if you leave the value 'A4', each page will be spreaded over 2 pages when printing using Dot Matrix printers.
1. Under 'Graphic'=> 'Print Quality', click on the underlined value (e.g. 230X250 dots per inch) and select '120X144 dots per inch' from thedrop down menu.
Note that in case the value '120X144' is not available you should select a similar value from the list.
After you do the stepwise, I am sure there will no problem any more. The slowly printing mostly caused by printer type and your hardware specifications for example your LAN, etc..
good luck...
Rgds,
null -
Draft / fast Printing on Dot Matrix Printer(s) from Windows
Dear all,
we need to print all documents in Draft / fast Printing on Dot Matrix Printer(s). how we can print quick draft mode. we are using SAP PL43. from where we can download draft 10cpi fonts.
Regds,
samapthDraft mode is not by font. It is a specific printer mode. If you can not manually setup the mode, B1 may not have any abilities to print in this mode.
Thanks,
Gordon -
Right side Text not printing in Dot Matrix Print
Hi Gurus,
When i take print of the smartform with Laser Jet Printer its comming fine , but when i print using Dot Matrix Printer the text at right side is not printing.
Printer model : Epson DFX-5000+
Can any one tell me how to resolve this..
Thanks
Ganeshhi ,
SAPWIN Drivers which support those Epson printers check in SAP (windows support )
These will solve your Problem .
Regards
Deepak. -
Hi ,
I have developed delivery note using smartforms when i see print preview of this form giving logical destination laser printer it is coming fine and print is also good. but as my client wants to take the form print both on laser and dot matrix so when i am giving logical destination as dotmatrix printer if i see print preview then the total settings are disturbed like boxes and also in print the box lines are not printing.
what i have to do to get good printout on both the printers.
thanks in advance.Best idea to print your script on both dot matrix and laser printer is, create one table and allow user for maintainance, now before print preview go and check this customized table(using subroutines) and if laser printer, print all boxes... if on dot matrix remove what all lines not supported on dot matrix printer.
EX:
Go and fetch printer name from customized table,
IF printer = 'LASER'
***Draw boxes
***LINEITEMS
ELSEIF printer = 'Dot matrix'
***LINEITEMS.
ENDIF.
Regards,
Sairam -
Printing to dot matrix printer using continuous sheets
Hi;
Can anybody help me;
We have a web-based application.We have developed it with java and jsp. We want to print out several bills to continuous sheet.We are doing printing out with internet explorer and getting first page arranged but the following pages are sliding down.
Is there any way to print out to continuos sheet with dot matrix printer through javaYou mean you want the browser to do that? Frankly I don't think you are likely to succeed, but possibly using CSS (with an "@media print" section) might work. Specify fonts, font sizes, try to control everything that can be controlled through CSS. Note that this has nothing to do with Java.
-
Printing to Dot Matrix Printer
Is there any example to print directly to a dot matrix printer in text mode and not in Graphics mode.
ThanksAfter doing a search for
dot matrix printer text mode
I got about 17 results.
The 4th one was this:
http://forum.java.sun.com/thread.jsp?forum=257&thread=116133
HTH,
Radish21 -
Hi,
My actual job is to create an Report in Oracle Reports 10, running on an IBM AIX Unix Server and direct the output to an Dot-Matrix Printer.
The Report is ready for Preview.
What Parameter should be set as Report_DesFormat for that Dot-Matrix Printer?
I found only the list HTML, HTMLCSS, PDF, RTF, POSTSCRIPT, XML but the Printer can not unterstand any of these formats.
Thanks for any help
Rolf MamatHi.
Using one of graphical destination format can lead to unexpected results. What you should do is to configure your printer at the system OS level. Then you should include that printer into $ORACLE_HOME/guicommon/tk/admin/uiprint.txt file. The line you add to this file should be read as printer_name_you_specified_at_os_level:ASCII:1:some_comment:: For example :
my_dot_printer:ASCII:Testing printer::
Be aware of two colons at the end of the line.
For a destination format you should use one of predefined formats (dflt, wide, ...) or you can make your own format file which should be stored in $ORACLE_HOME/reports/printers directory. And dont forget to define your report design in character units.
Hope this answers your question.
Best regards. -
Problem with countinuous paper printing in dot matrix printer
Hi All,
I have problem with dot matrix printer (Devise Type EPESCP) while printing continuos printing. If i am printing 2 or more than that prints at a time, 2nd page is printing 5 lines up.
I have developed one smartform for this and i have used A4 size page format.
I have tried to change the Printer initialization code to 86 lines for DINA4. Still no change in continuous printing.
Printer initialization
Reset after exit
Cover page
First Page
Start of even page
Start of odd page
Start of page
End of first page
End of even page
End of odd page
End of page
Start of line on an even page
Start of line on an odd page
Start of line
End of line on an even page
End of line on odd page
End of line
Printer initialization
# reset
\e\0x40
# select character table 3 -> PC 437 character set
\e\0x74\0x03
# set line spacing 6 LPI
\e\0x32
# set page length 86 lines
\e\0x43\0x46
# cancel bottom margin
\e\0x4F
# set left margin to 0
\e\0x6C\0x00
# select LQ quality
\e\0x78\0x01
# select non-proportional spacing
\e\0x70\0x00
Can any one help me.
Thanks,
VishnuHi Vishnu,
Above you have the following commands:
set line spacing 6 LPI
\e\0x32
set page length 86 lines
\e\0x43\0x46
46 HEX = 70
So the above settings mean 70 lines at 6 LPI = 11.66 inches.
So is the paper length 11.66 inches? If not, you should adjust the settings accordingly.
Regards,
Aidan -
Need to Take Fast Printing on Dot Matrix Printer Using Report 10g
Dear ,
I need to take a fast output of Oracle 10g reports on Dot Matrix printer
Client runs the report and open in PDF but when he takes hard copy on his/her local printer, then printer works very slow and take huge time to print a single page.
Kindly help me, how can client get the output directly on his locally attached Dot Matrix Printer and fast.
Reports desinged and compile in Report10g R2 and
Middle teir using =Application Server 10 R2.
Thanks and regards.
PriyaDraft mode is not by font. It is a specific printer mode. If you can not manually setup the mode, B1 may not have any abilities to print in this mode.
Thanks,
Gordon -
SAP B1 not printing on Dot Matrix Printer
Hello everyone
I'm trying to print from SAP B1 2007B PL:00 to a Dot Matrix Printer connected in network.I selected the printer and gave print.But it is printing one or two junk characters only.When i try the same in a laser printer it prints well. What might be the problem and solution for this
Thanks and regards
RaghuHi
The following dot-matrix printers are supported by SAP Business One.
+ Citizen PROdot 300
+ Epson FX-880
+ OKI MICROLINE 320 Elite
If you are using the 2005 version you can use also the Epson FX-890.
Paulo Calado
SAP Business One Forums Team -
Page not printing on Dot Matrix Printer
Dear Experts,
I had requirment to print the PO layout on a stationary which is bigger than a4 and bit lesser than a3
I found that page as 370(Width) and 295(hight). So according to it I created a new page format in SAP coz I didnt have any page format near to it. For setting up the new page format I did these steps:
1) Page Format
2) Format Types
3) Device Types.
All these are done. also I have attached my Z smartform in the NEU output type in NACE.
Now when I excute SF and try to print that its not getting triggering on the printer.
I have taken printer as LP01.
Please suggest. Where I am wrong.
-=Soni=-Hi,
You need to assign the created page format to the device type used. Which device type is defined in output device LP01? Also if it is a device type with Line Printer Driver II, you also need to add the commands in the Printer Initialization action of the page format within the device type with commands to tell the printer the length of the page.
See the thread Re: DOT MATRIX PRINT is not coming correctly
Regards,
Aidan -
Crystal Report printing on dot-matrix printer
Hello,
I've developed an application using VB.NET and Crystal Reports in VS2008. The report generated gets printed correctly on modern laser or inkjet printers. However, the entire formatting gets affected when I print these reports on dot matrix printer. Apart from that. the print speed is very slow. I tried exporting the report to PDF, DOC and other formats - but no solution. There was Export to Text function, which is not working in Crystal Reports now.
After a research on this issue, I found out few links to some solutions - which actually doesn't work. These links are as follows:
http://social.msdn.microsoft.com/forums/en-US/vscrystalreports/thread/e24a8084-ad53-48bc-a7d5-065ef82636ac
http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/dd506c66-4cdc-48a7-9fa8-2c6f14daef24/ (Same issue in C#)
I've seen some software, in which, when Print on Dot Matrix (custom menu option) is selected, data is sent to DOS mode and reports are printed from DOS mode.
Is there any solution for this? OR DOS mode is the only solution?
This is high priority issue. Even though we're moving ahead in IT industry, govt. still depend on 4 color dot matrix printer reports.
Waiting for solution
Regards
Mayur Tendulkar | www.mayurtendulkar.comAlso, as of Service Pack 3 Microsoft updated their security models so a new C++ runtime is required. Please see these Kbase articles and Forum posts for more info:
https://bosap-support.wdf.sap.corp/sap/support/notes/0001495319
Forum thread for info Setup And Deployment Problem
Info:
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update and is available using the link below.
This needs to be installed before installing a setup package that uses the SP 3 merge modules.
http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en
Thank you all again and have a great day
Don
Maybe you are looking for
-
I need to re-install Acrobat 9 Standard. In adobe "My Account" I see my order but when I download it says: "You have no downloads"What can I do?
-
I just got the DKU-2 USB Data Cable
but i have a problem my phone is Nokia 6111 but when i put the cd in and the software loads it shows picturs of phones to click on but doesn't show the 6111. Does it matter? I clicked on any phone picture and installed the usb cable but when i'n on t
-
Repository configuation failed while installing grid control 11.2.0.1
Hi, I am installing oracle grid control 11.2.0.1 on linux.but at the installing the componets i.e repository configuration got failed. can anybody suggest me for the same.... [oracle@rac1 gc]$ ./runInstaller Starting Oracle Universal Installer... Che
-
Post Author: Jon80 CA Forum: WebIntelligence Reporting A measure object in a universe is set to aggregate as 'Average'. However, in Webi one of the amounts that I'm viewing does not seem like an average. ExampleProduct Category Unit Price Dis
-
ALL I WANT IS ANSWERS, WHY DID MY ADOBE FLASHPLAYER 11 , STOPED RUNNING AND MESSAGE SAID MY FLASHPLAYER CRASHED ? WHY ? WHAT CAN I DO ABOUT THIS ? DO I NEED ANOTHER ADOBE PLAYER OR PLUGIN OR WHAT ? ? PLEASE HELP THANK YOU. I DO NOT UNDERSTAND WHAT