Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Print report on paper roll

Print report on paper roll

Print report on paper roll

I am trying to print an invoice on a continous paper roll.
My problem is I can't dfine page length as "free" or somethig like that.
I can only select from fixed page sizes and the printout is some 3 meters long.

Any ideas on how to print in this conditions?

Thank you,

RE: Print report on paper roll

Since it is not a standard size page, I would not use the report writer (FRX). Instead I would use the command

CODE -->

??? Expression 

To send the output directly to the printer. You can also send the command to cut the paper with the same command. Use the command

CODE -->

SET PRINTER TO printername 

To first set the printer to output to.


RE: Print report on paper roll

Hi Greg, thank you.

I can't use ?? commands because I need to print graphic elements on that invoice.

Thank you

RE: Print report on paper roll

According to Bernard Bout it's just a matter of having the appropriate printer driver installed and VFP reports on such roll paper printer simply get as long as necessary for their detail band and end with a paper cut.


And that was in 2008. If that problem wasn't a problem way back then I really wonder what printer driver you use. Are you printing using "Generic/Text"? If you want support for a printer, use its driver.

So, in all clarity, it's not true what Greg said. You don't have to revert to legacy printing commands to print on roll paper.


RE: Print report on paper roll

Unfortunately, "Generic/Text Only" won't work in this case, because it doesn't support the printing of graphics.

I would have thought you could achieve your goal by using an existing printer driver, but, within the report writer, set the heights of the header and footer bands to zero, and set the "Print area" to "Whole page".


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Print report on paper roll

Hello Daniel,

This is surprising. At my place, we're using FRX (with graphics and without graphics, various fonts, font sizes etc) for printing onto Thermal Slip printers. There shouldn't be anything complex about that.

Which printer you use? Try to install the correct printer driver.
If you don't have install/driver files, you can search internet with your printer brand and model name for an updated driver package. Download and install.

Before you going to edit the FRX, make your slip printer as the Default Printer. Then, when you go FRX Properties and Page size, you should see the Slip Printer and choosing that should automatically show the available width. In case of a Paper Roll, length is irrelevant as roll paper doesn't have a fixed height (or length if you call so)


RE: Print report on paper roll


maybe you can use NOPAGEEJECT clause and send an empty report without it afterwards


RE: Print report on paper roll

I have a custom printer driver I wrote for Visual FreePro that might work. It lets you position things on a logical page, and then sends that to the print spooler.

If you can't find another solution let me know and I'll give you a copy and example of my PrintDoc() functions.

Rick C. Hodgin

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close