Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unwanted repeating pages

Status
Not open for further replies.

fumbles

Programmer
Dec 9, 1999
43
US
Hi all,

I am converting a price tag generation app for our retail furniture application. The report(tag) has a bitmap, several text fields in mixed fonts and two fields that catch variables made up of blocks of text that are created by the program before it prints. myvar= field+” “+field+…+chr(13), etc.) These are all smaller than the space on the tag and are directed to stretchable text boxes.

The problem is when I direct the tag(report) to various Laserjets with the ‘prompt’ keyword, extra copies will print. If I accept the “all” button for the pages setup within the print dialog, the tag will print as many of the one page report as I allow. In order to get only one page I have to select "pages 1 to 1". Unfortunately, the default is 1 to 65534. I am convinced that if I let it, it would print all 65534 of them.

Does anyone have any insight into this behavior or a way of getting the “pages” range to default to 1 to 1?

Thanks for your help.

Steve
 
You could create a custom print dialog, that way you can control all aspects of the printer.
 
Thanks for the response.

I am considering that, I just hate to reinvent the wheel if there's another way or if there is a way I can redo the report to get rid the "extra pages" behavior. It only occurrs on this one report type. If I remove the text boxes containing the variable with the block of text, it will print normally. But I have used this technique a lot over the years and trhis is the first time I have hit this behavior.

Steve
 
Is it possible that your stretchable textbox exceeds the lenght of you page 1 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top