PCL file - after codification, how to print it ?
Hello,
I got a file pcl, I can put it into an internal table,
my question is:
how can send it to print (oe spool ) ? some bapi, or some mf ?
tks,
Hi,
try this way....
Data : wa_pri_params TYPE pri_params,
CONCATENATE 'E'
sy-datum+4(4)
sy-uzeit INTO
wa_pri_params-plist. "creating spool number
NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params. "writing data to spool
LOOP AT t_data into w_data. "data of PCL file in internal table
WRITE : / wa_error-text.
ENDLOOP.
NEW-PAGE PRINT OFF.
* To fetch the spool number from TSP01 table
SELECT rqident
FROM tsp01
INTO w_rqident
UP TO 1 ROWS
WHERE rq2name = wa_pri_params-plist. "fetching spool number
write : tsp01-RQIDENT.
Prabhudas
Similar Messages
-
How to know the encoding of PCL file generated using HP universal printer PCL5
Hi,
varun1186,
I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at http://h30499.www3.hp.com/hpeb/ .
I hope this helps.
↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓ -
Hello,
I have a PCL file, and I want to print it on sap system by the spool.
Do you know if exist some MF or other to print it ?
It's important to decode it ? How ?
Tks,
Bye.If by PCL you mean the printer programming language, then I would guess that such file is supposed to be sent directly to the printer without any software interference. And any such interference most likely will corrupt the file. So the short answer is "no way".
-
Hi all,
please tell me how to print documents (.pdf , .doc , .xls , .jpeg, .gif, .bmp) with java coding
i have tried like this ..
try {
// Open the input file
InputStream is = new BufferedInputStream(
new FileInputStream("C:\\Documents and Settings\\3041\\Desktop\\New Folder (2)\\00.pdf"));
PrintService service = PrintServiceLookup.lookupDefaultPrintService();
DocFlavor[] flavors = service.getSupportedDocFlavors();
for (int i = 0; i < flavors.length; i++) {
System.out.println(flavors.getMimeType());
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc = new SimpleDoc(is, DocFlavor.INPUT_STREAM.PDF, null);
// Print it
job.print(doc, null);
is.close();
} catch (PrintException e) {
System.out.println (e);
} catch (IOException e) {
System.out.println (e);
which prints all images properly but not doc or pdf files please help how to print PDF or DOC files
Edited by: getzkk on Oct 8, 2007 7:31 AM
Edited by: getzkk on Oct 8, 2007 4:02 PMWell, the ability to convert the pdf to html and then to PDF is a worthy solution.
10,000 emails would require a batch convert solution.
This is very much beyond what I know. I'll have to leave this to better minds.
I could suggest a third party tool. Have a look at this:
http://a-pdf.com/faq/can-i-split-pdf-file-with-nonstandard-page-size.htm
Other than that,I can't think of anything else.
Gene -
Print a PCL file - How is it possible ?
Hello,
I'm receiving a PCL file from an external system, and I have to send this file towards a print ( or a spool ).
Do you have some idea ?
tks.no reply
-
How to generate PCL files ?
Hello,
We are using PIB 5.6.3 within APPS 11.5.10.2 on RedHat Linux servers.
For printing purpose but also for archiving, we need to generate physical PCL files.
I read many posts on the subject and most of them advise to use ghostscript (GS) so I tried it but the result was not very good :
- the PCL file are too big (3 or 4 times the corresponding PDF size) so it is not good for our archiving system
- the generated PCL files cannot be correctly printed
Maybe I am not calling correctly GS ?
Can anyone working with BIP on APPS indicate to me how to generate correct and optimized PCL files in batch mode ? (with GS or any other tool)
Thanks in advance
K.HelaliHi
GS is the recommendation fro development right now. They are going to release their own PDF to PCL driver in the near future but for now GS. There are many other customers using GS for PCL generation. I have not heard of customers using it as a format for archiving only printing so I guess size has not been an issue for them - just get it to the printer and delete the PCL after that!
There might be some commercial product out there but I can not recommend any at the moment.
Regards
tim -
How to print a HTML file in browser look using DocPrintJob
Hello guys,
Does anyone know how to print HTML output/file into browser look?
I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
posted below is my code :
public class BasicPrint {
public static void main(String[] args) {
try {
// Open the image file
String testData = "C:/new_page_1.html";
InputStream is = new BufferedInputStream(new FileInputStream(testData));
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
// Find the default service
PrintService service = PrintServiceLookup.lookupDefaultPrintService();
System.out.println(service);
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc= new SimpleDoc(is, flavor, null);
// Monitor print job events; for the implementation of PrintJobWatcher,
// see e702 Determining When a Print Job Has Finished
PrintJobWatcher pjDone = new PrintJobWatcher(job);
// Print it
job.print(doc, null);
// Wait for the print job to be done
pjDone.waitForDone();
// It is now safe to close the input stream
is.close();
} catch (PrintException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
static class PrintJobWatcher {
// true iff it is safe to close the print job's input stream
boolean done = false;
PrintJobWatcher(DocPrintJob job) {
// Add a listener to the print job
job.addPrintJobListener(new PrintJobAdapter() {
public void printJobCanceled(PrintJobEvent pje) {
allDone();
public void printJobCompleted(PrintJobEvent pje) {
allDone();
public void printJobFailed(PrintJobEvent pje) {
allDone();
public void printJobNoMoreEvents(PrintJobEvent pje) {
allDone();
void allDone() {
synchronized (PrintJobWatcher.this) {
done = true;
PrintJobWatcher.this.notify();
public synchronized void waitForDone() {
try {
while (!done) {
wait();
} catch (InterruptedException e) {
}the printed ouput for this code will be look like this
<html>
<body>
<div style="page-break-after:'always';
background-color:#EEEEEE;
width:400;
height:70">
testPrint</div>
ABCDEFGHIJK<p>
</p>
</body>
</html>however, the output that i want is the HTML in browser look not HTML code itself.
i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
Thanks in advanced.hi,
do the following
URL url = null;
try
url = new URL("http://www.xyz.com");
catch (MalformedURLException e)
System.out.println("URL not correct " + e.toString());
if (url != null)
getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
}hope that helpz
cheerz
ynkrish -
How to print the file name in sap
Hi All,
I have requirment like,
there is a folder in my local system, inside that folder there are 10 Excel file like file1.xls,file2.xls..............file10.xls
how to print the file name of all these file in SAp like
file1.xls
file2.xls
file3.xls
file4.xls
file10.xls
Appropriate points will be rewarded.
Thanks in Advance
Arun kumarHi,
Still you are facing any problem with this code expalin the problem with details , otherwise close this thread.
Use Method <b>cl_gui_frontend_services=>directory_list_files</b> to read file names for a given directory
after reading the files then Use FM : <b>RSPO_SX_OUTPUT_TEXTDATA</b> to create spool from internal table data and print the data.
<b>sample code :</b>
data: desktop_dir type string.
data: ifiles type table of string.
data: xfiles type string.
data: count type i.
data: filepath type string.
call method cl_gui_frontend_services=>get_desktop_directory
changing
desktop_directory = desktop_dir .
call method cl_gui_cfw=>flush.
call method cl_gui_frontend_services=>directory_list_files
exporting
directory = desktop_dir
* filter = '*.xls'
files_only = 'X'
* DIRECTORIES_ONLY =
changing
file_table = ifiles
count = count.
DATA : x_name LIKE tsp03d-name,
x_dest LIKE tsp03d-padest VALUE 'LOCL',
x_rows LIKE sxpcklsti1-body_num VALUE 0,
x_startrow LIKE sxpcklsti1-body_start VALUE 1,
x_pages LIKE rspotype-pages VALUE 1,
x_pages_1 TYPE p DECIMALS 2,
x_rqtitle LIKE sxpcklsti1-obj_descr,
x_rqcopies TYPE i VALUE 1,
x_rqowner LIKE trdyse01cm-username,
x_immediate LIKE pri_params-primm VALUE ' ',
x_rqid LIKE tsp01-rqident,
i_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
x_pages = 1.
x_rqowner = sy-uname.
x_dest = 'LOCL'.
x_startrow = 1.
x_rqcopies = 1.
x_immediate = 'X' .
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
* name = x_name
dest = x_dest
rows = x_rows
startrow = x_startrow
pages = x_pages
rqtitle = x_rqtitle
rqcopies = x_rqcopies
rqowner = x_rqowner
immediately = x_immediate
IMPORTING
rqid = x_rqid
TABLES
text_data = i_contents
EXCEPTIONS
name_missing = 1
name_twice = 2
not_found = 3
illegal_layout = 4
internal_error = 5
size_mismatch = 6
OTHERS = 7.
IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Appana
*Reward Points for helpful answers
Message was edited by: L Appana -
I need to print one or more OS files after a report runs, depending on some conditions in the data.
I could somehow include the files in the report, they are PDF files.
Any idea how I can do this?Forgot to mention, I am using Reports 10g (10.1).
I see OLE is no longer supported, this may have worked. -
Hi <br />I want to ammend the JMD so that the nojob prints out a pcl file that I am testing. I can print it using a command line paramater using "copy <filename> <printerserver/printername>"<br /><br />So i want to carry this out through central so i thought the nojob task i have looks like this, but it doesnt work. <br /><br /> !x JFNOJOB * * "copy @InFile \\printerserver\printername" * <br /><br />Has anybody got any ideas to solve this? <br />I thought maybe a JFPrint task but there doesnt seem to be one. <br /><br />Cheers.
Let me re-ask the same question, but maybe more clearer this time.
I have a PCL file on a UNIX server.
I need to be able to print the PCL file to an HP color LaserJet 5550 printer, using UNIX's "lp" command.
The DNS Name of the printer is "oepljp1q".
I am using PuTTY to issue the "lp" command.
After issuing the "lp" command, I receive no error messages, so I believe, that the command was successful.
I see no buttons on the printer, that would show me, if any jobs are queued up to be printed.
I had my "lp" command monitored by our Performance Group, and the monitoring showed the IP set-up and tear-down of the session between the UNIX server with the PCL file and the printer, with packlets in between.
Any idea, why the printer is not producing the desired paper output? -
PCL file - is possible to print it directly ?
Helle expert,
I'm receiving a pcl file from an external system.
With GUI_UPLOAD I import this file into SAP ( on spool ).
Now I want to print it. How can I do it ?
P.S. I tried simply print it but in the paper there's only the symbol : I mean that the
file is not decoded.
Tks a lot.no reply
-
PCL file - how convert it ?
Hello expert,
I have a pcl file. How is possible to convert it ?
I mean that I want to decode a pcl file and to have data on the spool read to be print.
any idea ?
tks.no reply
-
Cannot print PCL file with graphical content
If I try to print a PCL file with graphical content using lp then the output is corrupt on a network printer. I've tracked the problem down to the netpr program - which seems to be performing some sort of filtering on the data. Does anyone know how the flags work for netpr - or know of a work around?
Assuming you are running 10.10.2 and not the ancient 10.0.2, can you tell us what printer and printer driver you are using? How is the printer connected to the computer (network, usb)? See if you can delete the Reader preference files? Years ago I resetting the printer subsystem would sometimes cure a problem like this.
-
How do I automatically delete a .ps file after creating a pdf?
Hi all! I vaguley remember in the past that there is a preference to automatically delete a .ps file after creating a pdf. Can someone remind me of how to do this? I'm using Distiller version 9.2.0. Thank you so much!
Julie
PS: I'm creating the .ps file from Quark 7, if that makes a difference.I am unaware of any feature allowing automatic delete of .PS files.
The adobePDF print driver which has been removed in OSX.6.x (Snow Leopard) That you choose when ina Document would go through the following steps in the background this made it slow.
create .ps File (hidden)
Checksum Verify the .ps File
Open Distiller in background (hidden)
Create Pdf
Checksum Verify the .pdf File
shut down Distiller in Backgroun (hidden)
Delete .ps File (hidden)
Pdf suddenly appears
If at any point in this chain something dies the pdf was not made.
Actually in prior OS to X.3.x the print driver provided for my Hp Inkjet, it was actually better to go to print menu, and choose save as postscript, then drop the postsript file on distiller and creat the PDF. or just open the ps in Acrobat.
with the PRint Drive provided for my HP Inkjet for X.3 it was changed to create Postcsript file from PDF. In the start having the PDF button on print menu. The pdf's were not as good as those created in the AdobePDF driver. But were aceptable for most purposes. -
Cannot print a PDF file after upgrading to Windows 8.1
Cannot print a PDF file after upgrading to Windows 8.1
I can print anything else from either the Desktop or Start but not a PDF. No error message but just does not print.
Update: down loaded Adobe Reader which runs on the desktop so when I read a PDF file it now runs on the desktop and I can print it.Cannot print a PDF file after upgrading to Windows 8.1
I can print anything else from either the Desktop or Start but not a PDF. No error message but just does not print.
Update: down loaded Adobe Reader which runs on the desktop so when I read a PDF file it now runs on the desktop and I can print it.
Maybe you are looking for
-
Nokia 206 - Send message to nokia - charged £1
Got new Nokia 206, inserted sim powered up got a message saying need to send message to Nokia and may be charged (no idea what is in the message), checked PAYG balance and I have been charged £1 for the privelige = not happy. Is this a subsidy to nok
-
"no photos were copied to the ipod because there is not enough free space"
i've been trying to download photos on my nano for weeks and i always receive this message : "no photos were copied to the ipod because there is not enough free space on the ipod to hold your photos and albums." the weird thing is that there IS free
-
Elements 6 on XP Professional- Will NOT Open!!!
Has anyone had the experience or know the fix for Photoshop Elements 6 not opening? I have restored my entire hard drive to a previous date when it did work and that dosent work. I have reloaded 6 and that does not work.. I am at a loss. thanks. pg
-
MacBookPro or G5 desktop? Which one should I buy?
I had just made the decision to invest in a new Mac. I've been using my G3 Powerbook for a few years now and it's time to upgrade. I can't even put OSX on my PB (I should be able to but can't due to various problems and instabilities - with the PB th
-
Hello, I'm currently using a demo of Flash 8 and I can't seem to use the nummeric scaling option properly. Whenever I enter a scale value above 200%, or whenever I manually scaled it above 200% and want to bring it back to 100% nummeric wise, then th