473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Print receipt on roll paper - dynamic length

3
How to print in MS Access a report to a receipt printer like Epson TM-T20, TM-T88V, ...
Now I can only print fixed length reports. Purpose of roll paper is to cut the paper after last line of information.
Jan 8 '15 #1
7 4859
twinnyfo
3,653 Expert Mod 2GB
Access Reports are limited in length to 22 Inches. I have not used Roll paper to test it, but I would think that you could print multiple pages using that type of paper.
Jan 8 '15 #2
Seth Schrock
2,965 Expert 2GB
Total design length may be 22 inches, but if the number of records multiplies the detail section beyond 22 inches, thats fine.

@acc001, have you tried it or is this question preemptive?
Jan 8 '15 #3
acc001
3
Hi,
Thanks for your reply. I tried it and for what I understand, is that I only can choose a paper size, e.g. A4, A5, letter, ...
So for every receipt I print, I get the length of an A4, A5 accordingly. Better would be to have only the length needed for the total length of items to be printed.

If I have a receipt of 5 items, the length of the printout should be: n_header + 5 x n_item + n_footer
If the receipt has 20 items, the length should be: n_header + 20 x n_item + n_footer

For now the best solution I can think of is to calculate the length, then choose the closest available papersize, set it and printout.

Question is how to set dimensions of paper size at printout?
Jan 9 '15 #4
twinnyfo
3,653 Expert Mod 2GB
Ahhhhh, now I see your conundrum! Gone are the good ol' days where you could send one line to a printer.....

Hey! That's an idea..... Set the paper size to the height of one row of text with no top or bottom margins! Then, you are essentially printing a bunch of tiny pages (each item is a page). To print gaps between receipts, print several "blank pages".

It is thinking outside the box, but it just might work!
Jan 9 '15 #5
Seth Schrock
2,965 Expert 2GB
I don't know what property you would need to set, but here is the list for Access 2010: Access 2010 Report Properties
Jan 9 '15 #6
Seth Schrock
2,965 Expert 2GB
See How to dynamically resize a continuous dialog form. I know this is for a form, but it might work similar to a report.
Jan 9 '15 #7
acc001
3
Thank you all, but can't solve it. Setting the paper size seems not possible? Only predefined size can by chosen. Tried to set report.height, but gives an error when applied after opening in designview and before printout. And when set instruction placed in onLoad event, then it has no effect.
Jan 9 '15 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Markus L?ffler | last post by:
Hi all, I'm looking for a class to access large memory blocks of dynamic length in an efficient way. Basically the simplest way to allocate a memory block is to allocate a byte . If you now...
1
by: Bob | last post by:
I have a query whose results contain the full path (i.e. c:\Images\xxx.tif) to MUTI-PAGE (All two page) TIF documents. I need to figure out how to BATCH print the tiff's using the path from the...
1
by: Clark Nu | last post by:
My English is very pool. I have a window contains some controls that based on "UserControl",now I want print them on a paper,and I want them can keep the true size,it means if had a control with...
0
by: jiatiejun | last post by:
I want to print a part of paper, but I can't control the printer scroll paper how to set custom paper size? thanks
0
by: MajorTom | last post by:
Hi I designing a report with Crystal (C#, winforms), my problems is how to set the paper size for the width of the roll 3 inches and tall continuous large. 2.- There is only 40 char columns...
0
by: Anniech | last post by:
I use VB.NET to integrate with crystal report 9.0 to print a report with custom paper size (using Dot Matrix printer). I have already added a custom paper size in the printer server and set the...
2
by: Mitul | last post by:
Hello friends, I am getting stuck at a point in my project. I would like to give functionality of print data from site. but there is a problem is that if there are lots of data which takes...
0
by: sanjay.hurryup | last post by:
I have a problem with printing . I want to print on a roll paper, a long list, should stop the paper whenever the printing stops. In normal case single paper is used even if it has less to print....
10
by: Zytan | last post by:
This article: http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingWithArrays11142005060354AM/WorkingWithArrays.aspx claims that "In C#, arrays can be declared as fixed length or dynamic". I...
1
by: ss908 | last post by:
I changed the default paper from Letter to Tabloid. It covers only half the page. No way to "fit to page" for the report? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.