Jump to content
Changes to the Jaspersoft community edition download ×

Print on continuous paper


2004 IR Help

Recommended Posts

By: snowghost - the-snowghost

Print on continuous paper

2005-03-02 05:13

Hello Jasper-Community.

I want to print some reports on continuous paper with a size of w=210mm and h=105mm.

I have defined this size in the jasper design file (jrxml). But when I try to print the reports the printer always uses A4 format.

 

I want to print the reports without a printer dialog so the user can?t configure the printer.

I know that this must be possible with the printer attributes (like MediaSizeName) but I?m not capable of doing it.

 

Does someone has a example on how to print on custom paper sizes and can post some code snippets.

 

Best regards.

Snowghost

 

 

 

 

By: snowghost - the-snowghost

RE: Print on continuous paper

2005-03-07 23:36

Has anybody tried to print on continuous paper before and can help me???

 

 

 

 

By: Mufasa - mufasa

RE: Print on continuous paper

2005-03-08 08:33

I'm just interested in getting HTML output to not be 'paged'.

 

 

 

 

By: Tbozu - tbozu

RE: Print on continuous paper

2005-03-08 18:53

i dunno about printing on continuous paper.. but u can set the print dialog to dissappear with the following method:

JasperPrintManager.printReport(jasperPrint,false);

 

 

 

 

By: snowghost - the-snowghost

RE: Print on continuous paper

2005-03-09 22:42

Thanks for your answers.

I?ve already tried to call the printer without the printer dialog. The printer is also configured to use the paper format with a height of 105mm. Unfortunately, the printer always prints feeds the paper more than this size.

 

I can?t believe that no one else has this problem...

Maybe the project leader Teodor Danciu can give me some hints...

 

All replies a really would be appreciated.

 

Snowghost

 

 

 

 

By: Alexander Wallace - aows

RE: Print on continuous paper

2005-03-10 06:50

actually yes, others have had the problem... I had it, just never got it to work and moved on to non continuos paper.... My problem was with printing labels on continuos paper... Tho i don't need this anymore, it sure would be nice to know it's possible and how...

Link to comment
Share on other sites

  • 5 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 Hi, 

Maybe you could use "Ignore pagination" property. It's inside Jasper Report Parameters: 

http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRParameter.html

 

IS_IGNORE_PAGINATION

static final java.lang.String IS_IGNORE_PAGINATION[/code]
Whether to use pagination.

If set to true the report will be generated on one long page.

 

See Also:
Constant Field Values

This way, the report won't be paginated and I guess you could print on continuous paper. 

Hope this helps.

Regards.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...