Printing ZPL code directly to a printer
In my abap program a have a string that contains ZPL code. I'd like to send that ZPL code directly to the user's local printer. Is there a way to do this in ABAP? I looked at FM PRINT_TEXT but I'm not sure if that is the best way to do it.
If I were to do this outside of SAP. I would call up the windows command prompt and type:
copy C:\Label.txt LPT1
I just don't know how to do this from ABAP.
Thank you,
I'm try to set up a print control for device type LB_ZEB2. However, I'm not sure what to put for the control charatcer sequence. Here is my code:
FORM test_print using barcode.
DATA PARAMS LIKE PRI_PARAMS.
DATA: DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = 'LABL'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'Test NEW-PAGE PRINT ON'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
NO_DIALOG = ' '
IMPORTING
OUT_PARAMETERS = PARAMS
VALID = VALID.
IF VALID <> SPACE.
*NEW-PAGE PRINT ON IMMEDIATELY 'X'.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
FORMAT COLOR OFF INTENSIFIED OFF.
WRITE:/.
PRINT-CONTROL FUNCTION 'BCPFX'.
WRITE: barcode NO-GAP.
PRINT-CONTROL FUNCTION 'BCSFX'.
WRITE:/.
endif.
ENDFORM.
Similar Messages
-
Print a pdf directly to a printer to avoid repeated ripping of the same image
Hi,
I have created a 3.000 pages document from inDesign heaving its page the same color image as background and variable data. The document exported as pdf. Because of this method the file has very little size (about 3MB). The acrobat print engine take the image once and the resulted pdf does not using a copy in every page but share it (very cool).
The problem that I have is that when I print this pdf using the windows postscript drivers of my industrial printer (Xerox) then it takes very long time to ripp. I think that even if the pdf has only once the image the windows drivers does not understand this and send the image with every page.
I discussed this with someone and told me to print the pdf directly to the printer without the interference of printer's driver. As an example he mentioned that when we have a postscript file we do the same to print it (otherwise the postscript code will be printed) using a command line like lpr and put as an argument the IP of the printer (or using some tools for this like the free PrintFile but tghis is only for postscript files).
Could someone explain to me what he meant? And how is the syntax of the lpr?
Thanks in advanceDo you mean that the information for the label is huge on a letter or A4 page and you want to shrink it to the size of the label, or do you have a small region that you want to print to the label? Your work flow is not coming through at all and it is hard to help as a result.
If you have a label size print on a large page, then crop the page to the label print. Then go to the print menu, select the label paper, set shrink to fit, and print. At least I think that is what you are looking for. -
Print a report directly to the printer
I need to print a report directly to the printer in Oracle Forms and Report 11g without a preview in the browser
Hello,
<p>You can use this Java Bean</p>
Francois -
Print ALV report Directly - without the Print Parameter POPUP
Hai All,
I want to print a ALV directly to the printer without the Print Paramter POPUP.
I passed on IS_PRINT parameters in the FM 'REUSE_ALV_LIST_DISPLAY'.
But still i am getting the popup.
How to do this.
It is urgent .
Kindly help me solving this.
Vikki.Hi,
i have passed IS_Print-Print = 'X'.
But even after that i am getting the print parameter popup.
IS there any other way to handle this. TO SUPPRESS THE PRINT PARAMETER POPUP.
Please guide me.
Waiting for ur replies.
Vikki. -
Not able to take print a report directly to the printer
Hi All,
Can anyone help me to print a report directly to the printer?. Currently, I am viewing the reports in the screen and then taking print of that report. If anyone knows the solution for this, please give me the feedback immediately. It is very urgent.HI ALL
i have the same problem plz tel me som solution 4 it
thanx in advance -
Can't print the report directly on the printer?
Dear All,
My client encounter a problem of printing a report directly to the printer. He is using developer 6i with OAS. His application is going to deploy on the web. He wants the report printed out directly on the "HP Laser Jet Printer" after the user has made the selection and clicked the "Print" button from the forms 6i. However, he got the error saying that
"Oracle Report Server OWS Cartridge - Report Job has terminated with error
Report Server Replies:
Rep-0713: invalid printer name 'HP4050' specified by parameters DESNAME."
And here is the parameter string passing into the report server:
http://epmsdevs2.eway:9002/rwows/rwows60?report=epms1271.rdf+userid=epmsdev/epmsdev@dev+desformat=landscape+destype=printer+desname=HP4050+server=RepServer
Is there anyone can show me some light on it?!
Any help and idea is appreciated in advance!!!
sheetaHi!
If reports are run in web env. then
you can print reports directly on
printer defined on m/c where report server
is running, not on client m/c. If you want
to print on client m/c then define that
printer on report sever m/c and make sure
report server can access that printer.
Nirali -
Print PDF file directly to store printer
Hi Gurus,
Having not found a solution, we think we need help from you. We have searched forums and google but have not found adequate solutions.
We are a retailer having different stores. Our main office is using SAP. Each store has its printer and defined in our SAP system. We want to print PDF files directly to store printer using SAP . How should we do that ? We think there are 2 steps:
1) Upload PDF files from network directory into SAP (We done it, no problem)
2) Having now PDF files in internal tables, how should we proceed to print PDF files using store printers?
Please note that we do not want to use CL_GUI_PDFVIEWER since we do not want to display the PDF and having the obligation to choose the print option from dialog and also we do not want to call Adobe OLE object to print
Any answer would be appreciated
Thank you very muchHi,
It is really late to give response this post. But still who ever refering to this post for the same issue this solution is useful for achieving same in background:
Even same can be used in smartforms, for getting spool request in PDF format as well which will decrease the size of file when printing in SAP printer.
ct_tline is PDF output:
DATA: lv_pdfsource TYPE xstring.
FIELD-SYMBOLS:<p> TYPE x. " <p> type any.
LOOP AT ct_tline INTO cs_tline.
ASSIGN cs_tline TO <p> CASTING TYPE x.
CONCATENATE lv_pdfsource <p> INTO lv_pdfsource IN BYTE MODE.
ENDLOOP.
* ->Create spool request in PDF format
CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB'
EXPORTING
printer = 'LOCL' "Printer name supporting PDF device type
* DEST =
pages = 1
pdf_data = lv_pdfsource "XSTRING internal table
* NAME =
* SUFFIX1 =
* SUFFIX2 =
* COPIES =
* PRIO =
IMMEDIATE_PRINT = 'X'
* AUTO_DELETE =
* TITLELINE =
* RECEIVER =
* DIVISION =
* AUTHORITY =
* LIFETIME = '0'
* IMPORTING
* SPOOLID =
* EXCEPTIONS
* NO_DATA = 1
* NOT_PDF = 2
* WRONG_DEVTYPE = 3
* OPERATION_FAILED = 4
* CANNOT_WRITE_FILE = 5
* DEVICE_MISSING = 6
* NO_SUCH_DEVICE = 7
* OTHERS = 8
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF. -
Printing a report directly to an printer via the printer's IP Address.
I am looking for how to print a report (either text or pdf) from a PL/SQL procedure, directly to a known IP Address of a printer.
We have a report that is generated through forms as a pdf. The user can then obviously read it and print it to a printer from their machine.
We are trying to implement a Stored procedure that will print that report directly to a know printer's IP Address.
How can this be done?Check out the orarrp utility (Oracle Reports Remote Printing Utility) on Metalink, note 277431.1.
It may be easier in the end to set up printers on the OAS. I guess that client PC's are using network printers, or are the really using printers connected directly to the PC? -
Printing a report directly to the printer on the client machine
Hi All,
I am migrating reports from 6i to 10g, all these reports are called from menu and some from forms. There are some reports which are directly sent to the printer for printing. My question is when we run those reports that are sent directly to the printer from OAS, Can we make it refer to the printer set up on the client machine?. Can any one let me know regarding this?.
Regards,
Prasad.Check out the orarrp utility (Oracle Reports Remote Printing Utility) on Metalink, note 277431.1.
It may be easier in the end to set up printers on the OAS. I guess that client PC's are using network printers, or are the really using printers connected directly to the PC? -
How to print pdf's direct to default printer by command line
I want to direct print pdf's to the default printer by command line.
this work's with:
C:\Programme\Adobe\Reader 11.0\Reader\AcroRd32.exe /n /s /h /t test.pdf
But at the end, when printing was done. Adobe does not close automatically.
Is there an opportunity to automatically close adobe after printing?No, Adobe stopped that happening many releases ago, for reasons that I don't understand but they will not change.
-
Print Report data directly to a printer
Hi
we are working on forms11g reports11g and oracle11g DB. working in AIX system. My client system is windows7.
when printing reports, once clicks the print button iam generating the PDF report (actually generate in server) using webuitl bring it to client and printing the report connected to the user system.
But if a printer is installed in the server(may be many printers are installed), how can print the report to my desired printer. how can be achieved this .
please suggest your valuable solution with example.
a..Hi,
check this link. Re: How can I Send report output to 3 different printer programatically
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_dest.htm
Edited by: HamidHelal on May 2, 2012 11:43 AM -
Printing APEX reports directly to the printer
Hi All,
Last few days I have been following forum quite often to get the post which could match my requirements, but in vain. I would appreciate if I can get assistance with this.
I want APEX application to print a specific report (when 'print' clicked) to printer directly instead of showing the PDF itself.
As a matter of fact this system will be hosted on a TOUCH SCREEN system for users, and the requirement says it should be as user friendly (as much as it can). I want few reports which as specific to that employee to be printed directly without showing the details to the user.
I already have Print server configured (BI publisher)
Thank You in advance.
Afaq Ayub
[http://www.afaqayub.com]Thanks for your comment. May be i phrased my statement wrong. As you said, definitely this is not the solution but a work around to my problem using 3rd party. This is the reason why i did not mention this solution on forum and said that its a "*work around*". This was a requirement and I had to get it any how quickly (time constraint) using free application. Meanwhile, i am also looking around if something like this could be done in Web Pages. Please let us know when you come up with solutions.
-
Check Printing - PDF displays fine, Printer prints PS Code
We are using XML Publisher 5.6.2 to build the check printing program.
The template is working fine and we are able to see the checks with
MICR thru the request output ( as PDF ).
Now, we need to print these checks directly to the printer and as per
the metalink note 338990.1, we installed PASTA and XPDF. The output
is now converted to PS and also sent to the printer.
However, the printer prints the PS code instead of interpreting the
PS and printing the check output.
The printer has been setup on unix (AIX 5.3) as a PS printer, however
even if we try the command line lp -dchkprint1 testXML.ps, the code
is printed and not the document.
Can anyone pls provide some insight into either printer setup or any
additional steps required other than PASTA / XPDF and printer setups.
Thanks & Regards,
Nishant KilledarHello
try to reset printing system
goto printer and fax system pref
then hold "alt" key and click "minus" button to reset printing system
then try to reinstall xerox driver but driver seem to be a little bit out of date only for 10.6
File Download: Driver Installer Package for Mac 10.6
Filename Phaser8550_EN.dmg
Date Sep 21, 2009
Size 13.2 MB
Apple Installer Package for the Phaser 8550 supporting Mac 10.6. ""
after install BE sure to update your system apple may have produce a printer driver for this model
Pierre -
My hp officejet 4500 all in one wifi. Was working fine now it wont print words only will print in codes. Already reinstalled printer but that didn't correct the problem. Im desperate ;{
Did you completely power off the printer and the computer? Sometimes (maybe due to unexpected shutdown, glitch in the network, etc.), data get left in the port, and resulting in this behavior. A complete shutdown should clear the ports.
======================================================================================
* I am an HP employee. *
** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **
***Click on White “Kudos” STAR to say thanks!*** -
Form is displayed while printed, but not displayed on screen (print preview)
Dear all,
We use an Adobe Form to visualise our invoices ... When we print an invoice directly to the printer, everything looks ok and all forms are displayed correctly ... But when we try to watch the same invoice on screen (print preview), we do not see the subform ...
The property "presence" of the specified subform is "visible", so this is probably not the problem ?
Does anyone have an idea what the problem could be ?
Thanks in advance !
Greetz,
Kurt.Hi,
please insure your local machine issue.
use a "CC Cleaner" S/W to your local machine , and then check again .
Regards
Puneet
Maybe you are looking for
-
Layer Opacity shortcuts not working on mac OSX 10.9.5
Hello, I work on a macbook pro retina (OSX 10.9.5.) with photoshop CC and the shortcuts to change the layers' opacity don't work. When I press a number (with a tool other than the brush tool), I know it should change the layer's opacity depending on
-
Ok so yesterday I went to put my computer into sleep mode, and when I did the power button started blinking orange. So I tried waking it up from sleep mode and it wouldn't wake up. I turned the computer off by pushing the power button and now when I
-
I can find no information on if dataguard can be used with ASM. Does it require the use of datafiles? I am upgrading databases from 9.2.0.4 to 10g and will have a standby and remote location standby also for distaster recovery. Any information and bo
-
Photoshop CS2, UI too small to read or use on lenovo yoga 2 pro HELP!
I have been using Photoshop CS2 for years and had to move it to my new laptop but I can't even see where the mouse it to work on anything. Please help!
-
This might be a newbie question . I am trying to create JTable with URLs/links as cells . Is it possible to do it with JLabel or JEditorPane or both of them? Can i have JLabel or JEditorPane as the cell contents?? if yes then how it is done .Is there