[#2397] - Fit page to MediaPrintableArea to fix printer hardware limitation

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Category:
Bug report
Priority:
Immediate
Status:
Acknowledged
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

I need to print a jasperreport to my printer that have some hardware limitation ( such as the margins ) for to do this I
've modify 3 file of jasperreport src...
This change fit the page to the minor margin of my printer, using the zoom
If somebody could take a look I'm would be pleasing...

I've signed the changes with 'Stefano'

The src is 1.2.8 of jasperreport

Grazie Stefano

AttachmentSize
Package icon fittoMediaPrintableArea.zip9.57 KB
szaccaria's picture
Joined: Aug 1 2006 - 5:48pm
Last seen: 15 years 11 months ago

4 Comments:

#1

--> Have you tried to look if there are other ways to achieve the same effect? I mean, could there be print request attributes or options on the print dialog (if displayed) that would allow forcing the printing to fit the printable area?

Yes, I tried to look about, but I don\'t found any suitable solution. when the print dialogue window is opened not there is flag to fit the image ( how you can find in the acrobat reader print dialogue... for example ). Moreover if it were decided to print the document in batch modality, all windows of dialogue would not have to be used.

-->Are you sure we need to modify the JRGraphic2DExporter? I don\'t think commenting our the global XY translation the modifications to the clipping area
and the background fill area are correct.

Of sure they I\'m not sure of such change, however I have tried various times these changes and to me it seems to work. To being sincere, second me, there are of the problems just in this part of code (you see XY translation). If you want I\'ll try to send some examples to you, I ask to you a confirmation, therefore i don\'t time lost uselessly.

Grazie mille
Stefano

#2

Hi, Stefano

We looked at the patch provided and it seems to be a very interesting feature.

First question:
Have you tried to look if there are other ways to achieve the same effect? I mean, could there be print request attributes or options on the print dialog (if displayed) that would allow forcing the printing to fit the printable area?

Second question:
Are you sure we need to modify the JRGraphic2DExporter? I don\'t think commenting our the global XY translation the modifications to the clipping area and the background fill area are correct.

Thank you,
Teodor

#3

Hi,

If you still have some sample files for us to use and test, please send them.

Thank you,
Teodor

#4

Hi Theodor, I must apologise if I not respond you about this problem, but in this time I\'m very busy... but I don\'t think to be the only one! However, since I used your lib in my project and I found it very useful, I think that the least I can do is to write some example about the problem that I wrote some mounth ago... Only you must excuse me if I will take some time to do this, I hope that this not becoming others mounths

Feedback