Following up on my previous blog How to Print(PDF) QR Codes in standard SAP
As I did come across QR codes in Japan I thought I would blog on how to use the Japanese postscript device type driver with QR codes. It should be noted the QRcode in the Barcode Writer in Pure Postscript (BWIPP) does not support kanji (yet). See the BWIPP outstanding features list for the to-do list for QR codes. Check with the BWIPP project if you want to request/support any new features in the actual barcode.
So the intention of the post is to show the way to use Japanese in the output including a QRcode.
If you used Japanaese in the original method then the cutepdf output would look like the following screenshot.
So to get Japanese to print properly then the SAP Postscript font file from this note is required.
Note 83502 - Printing Support for Native Languages
Download the Japanese font file "Japanese | JPSPOST | Dfnsjis (note 83502)"
Follow the note to set the required parameter and upload the font to the SAP server.
*Check the limitations of using these device types in the note and that the font file will be sent to the frontend with each print.
The end result when using the QRcode enabled device type.
Smartform Example.
Steps involved.
1) Downloaded the font file and set the parameter from the SAP note. Restart the SAP server
2) Download here the zip file which contains the following files.
ZQR_PRINT_JP.txt = ABAP code to produce a QRcode using the ZJPSPTQR device type.
ZBWIPP_JAPAN = Output Device linking the device type to cutepdf desktop printer
ZJPSPTQR.PRI = QRcode enabled SPOST Device Type
3) Use the original post in relation to the QRcode but use the above files to enable Japanese.
4) Run report ZQR_PRINT_JP (and make sure the print immediately is active).
Thai Language Support
In the comments section there is a question about using QRcodes and Thai Language support. By modifying the Thai device type that you can download in the note 83502 I was able to print Thai and the QRcode as shown below. I did rely on Google for the translation so hopefully it is translated appropriately....:)
So the intention of the post is to show the way to use Japanese in the output including a QRcode.
If you used Japanaese in the original method then the cutepdf output would look like the following screenshot.
So to get Japanese to print properly then the SAP Postscript font file from this note is required.
Note 83502 - Printing Support for Native Languages
Download the Japanese font file "Japanese | JPSPOST | Dfnsjis (note 83502)"
Follow the note to set the required parameter and upload the font to the SAP server.
*Check the limitations of using these device types in the note and that the font file will be sent to the frontend with each print.
The end result when using the QRcode enabled device type.
Smartform Example.
Steps involved.
1) Downloaded the font file and set the parameter from the SAP note. Restart the SAP server
2) Download here the zip file which contains the following files.
ZQR_PRINT_JP.txt = ABAP code to produce a QRcode using the ZJPSPTQR device type.
ZBWIPP_JAPAN = Output Device linking the device type to cutepdf desktop printer
ZJPSPTQR.PRI = QRcode enabled SPOST Device Type
3) Use the original post in relation to the QRcode but use the above files to enable Japanese.
4) Run report ZQR_PRINT_JP (and make sure the print immediately is active).
Thai Language Support
In the comments section there is a question about using QRcodes and Thai Language support. By modifying the Thai device type that you can download in the note 83502 I was able to print Thai and the QRcode as shown below. I did rely on Google for the translation so hopefully it is translated appropriately....:)
9 comments:
According to Japanese post script device type, I have the same problem that I can not print QR Code in THAI language. Do you have any suggestion about how to do post script device type in THAI language? I would appreciate it if you me an example.
Hi,
Can you successfully print using the Thai device type noted in note 83502?
Thai | THSPOST | Dfntis (note 83502)
I would suggest as a first step that you try and print Thai using that device type in its SAP standard state (without any barcode changes).
If you can use THSPOST to print Thai, let me know and we can move onto to try the Barcode Writer in Pure Postscript changes.
Cheers
Robert
Hi Robert,
Thank you so much for your kindly suggestion. I had tried to print via using the device type THSPOST in note 83502 already but right now it cannot work. However, I'll keep trying. In case of if I cannot use the device type THSPOST, do you have any solution?
Thank you in advance.
Hi,
1) You could log a call with SAP and mention the note and that you can't print using THSPOST in the standard form. No need to mention barcodes/etc but until you can print Thai in the standard manner with that device type, then there is no possibility of extending it to print barcodes with the barcode writer in pure postscript.
If you can answer the next questions I will see if I can help further.
2) What printer make & model do you use to print Thai?
3) What SAP device types do you currently use to print Thai?
If the above can be adapted for postscript there maybe alternatives.
Cheers
Robert
Hi Robert,
Following your questions;
I print by using "CutePDF" and "HP LaserJet P2050 Series PCL6" printers. For device type, I made "ZTHSWIN" in order to print Thai. This device type copy from "THSWIN".
Is above can be adapted for postscript?
Regards
Hi,
Apologies for the delay in reply and posting the message, I have been busy on other things.
I have now been checking into the issue further and will post again later this weekend after some tests. Maybe a way to use cutepdf with the SAP postscript file, if these tests are successful or not I will post here again with the details.
Cheers
Robert
Hi,
I was able to print QRcodes via an ABAP report with Thai using a modified THSPOST device type with cutepdf.
I'll put a screen shot in the blog.
I had to use Google for the translation so hopefully it says what I want it to say :).
Regards
Robert
Hi Robert,
Thank you so much for your precious time to help me.
I will try my best to do it.
Regards
Hi,
Now I know it is possible, if you would like more assistance or guidance on this then send me an email. I think it would be difficult to explain in this comment section. You can find my email address here on my SCN page.
http://scn.sap.com/people/robert.russell2
In any email, I would be interested in how you have setup cutepdf and details on the exact steps you are using to generate the printout so far.
Regards
Robert
Post a Comment