Results 1 to 4 of 4
  1. #1
    Bounthong is offline Novice
    Windows 11 Office 365
    Join Date
    Feb 2023
    Posts
    1

    Question Preview and Print Report on Roll Paper (XP-80)

    Dear Expert,


    My name is Bounthong from Laos, I am new in this forum, I use MS Office 365, I have a pretty good command in VBA, but may be not very advanced. I am very excited to join.

    I am stuck with a report which is the bill of a restaurant to be printed in a printer with roll paper (XP-80):
    - the report header height is fixed, contains bill no, table, date .... information,
    - the report footer height is also fixed, contains the price sum, discount, paid amount ... information.
    - the detail section which is a subreport showing the food ordered, amount, unit price and price of each food (menu), the height for this section can grow and shrink with the number of record (number of food (menu) ordered.

    Now I face 2 problems:
    Problem 1. when I design a report with fixed paper size, I see very often too much blank space in the detail section above report footer, especially when the number of ordered menu/food is small.
    Question 1: How I can set the height of paper depending on the number of record in detail section?
    Question 2: Can I also send from MS Access information through VBA to my printer to set to my customized paper size (which will be changed for each bill)?
    Problem 2: Now the problem is bigger, when I open report in preview mode and make paper setup to XP-80 which is installed with roll paper. The report details report becomes very very long blank space, and when I print it seems that the blank details section is endless, I have to pull out the cable of printer and cancel print queue.
    Question 3: how I can limit or set the paper size from vba for roll paper or roll paper printer?

    Anyone, please help.
    Thanks in advance.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    Well Bounthong, you're off to a bad start. You should read this
    https://excelguru.ca/a-message-to-forum-cross-posters/
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Has a replyon the crosspost as well before even posting here?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2022, 02:39 AM
  2. Replies: 5
    Last Post: 05-11-2020, 01:13 AM
  3. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  4. Replies: 1
    Last Post: 02-21-2015, 11:35 PM
  5. print report on paper for image
    By gromit95 in forum Reports
    Replies: 11
    Last Post: 01-12-2010, 08:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums