Birt report Line printer support - birt

I need to print the output of Birt report to a line printer (Tally T6045 Printer)
in Text mode.
Please help...

I would look at extending the emitter API to put out a format that would likely render nicely on a line printer. I looked and did n see one already in the community.
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php
http://www.birt-exchange.com/be/documentation/BIRT_220/EngineJavadoc/engine/api/org/eclipse/birt/report/engine/emitter/package-summary.html

Related

Issue with Oracle Reports 6i to PDF

everyone.
I am working with Oracle Reports 6i to generate a report that includeds text in the form of paragraphs. Everything looks fine from the Real Time Viewer however when the report is run to generate a PDF, some, of the paragraphs would change from Justified to Filled.
This doesn't happen for every text container. In a full page I will have two paragraphs that are filled instead of justified.
Here is the details.
Each paragraph is within their own container.
The alignment for all containers is set to Justified(Flush)
Paragraphs have the same font type and font size.
I have already try the size of the output but it didn't make a difference. Is there any configuration parameter or any format function I can use to fix this?
Thank you all!!
If some paragraphs are OK and some are not, I'd suggest you to use good, old copy/paste principle:
delete wrong ones
copy correct one
paste it
edit its contents - hopefully, it'll look OK (as all properties the "correct" one had are now "inherited")

How to tell the printer to print grayscale or colored content

I have this line of codes that will tell the printer to print a document. But it will only print colored content.
word = Dispatch("Word.Application")
word.Documents.Open(self.filePath)
word.ActiveDocument.PrintOut()
word.ActiveDocument.Close()
word.Quit()
What I want is to tell the printer to print grayscale content. Is there any possible solution for this?
Q: How to tell the printer to print grayscale or colored content?
Short Answer::
You have to talk to the relevant printer driver, which is completely platform- and API-specific.
Longer Answer:
The snippet you showed, word = Dispatch("Word.Application"), is using a Python wrapper to Microsoft Com/ActiveX. Specifically, to the MS-Word COM/ActiveX component (which was presumably registered on your PC when you installed MS-Word).
So all you have to do is look at the options provided by "Word.Application":
https://learn.microsoft.com/en-us/office/vba/api/word.application.printout
Be advised, you might also have to play around with "Printer Device Settings", for example:
https://learn.microsoft.com/en-us/office/vba/api/access.printer

How to render jpg from the epl code response received from endicia

My Problem here is in my application I'm using endicia to ship international order.
All the labels I'm getting in response are being printed on zebra printer with size of 4*6 .
But shipping international orders, endicia sends very large labels which is not getting printed on 4*6 correctly. They suggested me to get response in epl encodeing.
Now when I'm getting this epl code can anyone help to render image out of this code.
Or is there any other way to get clear print out of international order label on 4*6 label using zebra printer.
The platform I'm using is PHP with code codeigniter framework.
Is the response from endicia EPL or png?
Printing PNG to zebra printer is not great. There could be scaling problems. However, the way to do this is to do a normal print of png as a raster file.
If it is EPL, that should print directly.
The way I did this was to use shiprush sdk, because I send xml to shiprush, and it sends the epl to the printer itself, so I am free of that.

Which should not be included in this ZPL Code?

I am developing a Windows Mobile App that requires printing into a Zebra printer. Problem is, I do not have the printer with me here in my country since the client did not provide any.
My approach was to design a label first in ZebraDesigner2, then print out the label into a text file. Printing the label to a text file instead of a printer sends out the ZPL Code to produce the label I was trying to print. Hence, I can generate ZPL codes faster by designing a label first then seeing the ZPL code. Kinda like having a drag and drop GUI with a background XML.
Say that I have this simple label that contains this text:
Hello World!
If I print this in ZebraDesigner2 it would be written to my text file as:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR5,5~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW609
^LL0406
^LS0
^FT1,29^A0N,28,28^FH\^FDHello World!^FS
^PQ1,0,1,Y^XZ
My main question is, which one do I include in my C# Code if im going to send this code to the printer via my Windows Mobile C# app? Do I include the part with ^XA until ^XZ? I believe that CT~~CD,~CC^~CT~ should not be included in my code If im not mistaken.
Late answer, but since this is getting viewed...
The CT line and first set of XA..XZ sequence sets up the modes, label length, printable area, etc.
If you remove those, it will take those settings from the label/printer settings, which is usually what you want. The printers can sense the length and width of the label.
Leaving them in can cause big problems, because if you define the printable area in your label, and then the next label type submitted does not, it will use the settings you have defined -- which can cause blank areas in the label, eg. cutoff USPS Label barcodes that are printed after your Zebra Designer custom labels.
Found this out the hard way - leave those out, and you should leave out of the remaining XA..XZ sequence the MMT, PW609, LL0406, and LS0 as well - your Hello World will not be affected.
If you really want to limit the area printed to, set up margins inside the printable area, etc, refer to the manual.
you have to look at the programmers guide before you remove anything of the code. The CT~ command for example changes the control prefix.
Search the internet or zebra.com site for "ZPL Programming guide".
So, leave the text file as is and then include that into your windows mobile application.
PS: zebra offers SDKs for label/receipt printers: http://www.zebra.com/gb/en/products-services/software/adapt-software.html
PS2: without a test printer you may get bad final results.

Printing doc file using cocoa

Is it possible to print a doc file using cocoa application?
If possible please give some suggestions.
I printed pdf and image files.. But i didn't get any solution for doc files.
Thanks in advance,
Ramesh.P
The Word Document format is understood by NSAttributedString. It's displayed by NSTextView. The question you're really asking is "how do I print the contents of an attributed string," which reduces to "how do I print the contents of an NSTextView" at its simplest.
Even if you're not displaying the text view to the user, you'll still need an off-screen one with the desired settings to print it easily.

Resources