| |

VerySource

 Forgot password?
 Register
Search
View: 1451|Reply: 11

vb epson LQ300K fixed width and variable length document printing paper feed control problem solution

[Copy link]

1

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Invalid IP Address

Post time: 2020-3-4 16:00:01
| Show all posts |Read mode
My software needs to print a document of fixed width and variable length. Because of cost, the customer only uses the LQ300K printer. This printer is designed to print continuous paper, but because it is printed in pages, it will go every time the printing is completed One or more pages of paper, because they are full pages, often take a lot of white space. After each print, the user needs to manually twist the printer's rollers.This is not only troublesome, it makes the software look irregular, but also Reduce the life of the printer and bring unnecessary losses to customers!
    This document is used to display the details of a certain data.Because the number of detailed rows is not fixed, it may be many or small, so the length of the document cannot be fixed. Sometimes, it may exceed one page of A4, sometimes it may only have one page. Three or four lines of content, so I can't use a fixed custom format page to complete this function (I have found the way to use a custom page), because the length of the custom format page is also fixed
    I have searched online for a long time and there is no article that can solve such a problem, but I know someone has already solved this problem
    It is impossible to write PaperMode = 256 in code.It is not enough to simply set the width and height of the printer. The API-based codes found on the Internet are used to dynamically load custom pages, that is, only custom ones can be used. Page setup to print, this is not what I want
    Requirements to solve the problem: LQ300K printer must be used, no matter what method is used, as long as the printer can print out and stop at the exact position after printing is complete
    The possible ways I think of are the following, of course, I want to think about it, none of them have been implemented.
    1. Dynamically generate a custom page, using this page to set up printing will naturally have no problems. This is the preferred method, but no implementation method has been found.
    2.Set a custom page, the page height is the row height, I don't want to use this method to achieve it, and there is no experiment, because the font size in this document is not the same
    3.Use the method of line to achieve, but in this case, you need to use the control character, it is difficult to write, let alone, and it cannot be expressed in the form of report preview. Of course, if there is no way, this method will work
    My level is limited, I haven't thought of other ways to achieve it, I hope that you can take the time to help solve the problem, I am grateful !!!!!!!!
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-5-18 18:30:01
| Show all posts
I have also used the LQ300K, but it will not go one or more pages as you said after printing. I use two-point paper and the height is about 14cm, which is not a waste. Is the printer not set up correctly?
Reply

Use magic Report

1

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-5-19 14:30:01
| Show all posts
Thank you for your reply, but instead of going one more page, it will go one full page. In addition, the customer wants to save paper, of course, it is best to just go to the right position.
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-5-20 07:45:01
| Show all posts
I don't know what kind of paper you use. Generally speaking, you should choose the right paper? Otherwise, even if you are in the right position, the incomplete paper after cutting is not a waste. I do n’t know if I understand it.
Reply

Use magic Report

1

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Zambia

 Author| Post time: 2020-5-20 22:45:01
| Show all posts
No, it is continuous paper, that is, there are holes on both sides, a "sheet" of paper is about many meters, stacked together, and they are connected when used. After the paper is ejected, it is a single sheet when it is torn from the paper outlet. The problem is that the length of the paper output cannot be controlled. Then, after the printing is completed, turn the roller back and tear it to the appropriate position. Several of my users have screwed the roller because of the total screw.
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-5-23 14:00:01
| Show all posts
There are many meters in a "sheet" of paper?
I also use continuous paper, with holes, 24cm * 14cm length is 14cm per page. After printing, it will automatically go to the bottom of the last page.
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-23 20:00:01
| Show all posts
It's right to go upstairs, but sometimes the poor control will hit the place where the two pages are connected.
Reply

Use magic Report

1

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-5-25 23:45:01
| Show all posts
Ha ha, I didn't expect you to control this way. It doesn't matter if you hit the two-page connection, as long as you can stop at the position you want to stop after the last line is printed. Put two "sheets" of paper together into one "bag", the model is "120"
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-9 22:30:01
| Show all posts
I have encountered the problem of customizing the paper size before, and the information found on the Internet has been solved.

The landlord's question was also considered, but because the customer was accepting the waste of the last page of paper, he did not continue to study.

After reading the post of the landlord, I just had an idea, there is no actual operation, I don't know whether it is feasible, talk about helping the landlord to expand my ideas.

Since it stops wherever you want to print, I think it can be understood as always printing on a piece of paper. If you can make the current paper size setting exactly match the content to be printed, you can meet the requirements of the landlord.

Can it be achieved in this way? Before printing, first calculate the length of paper required by the data content to be printed through the program, and then set the paper to the corresponding size.

This turns the problem into a custom paper size problem, which may be better solved, at least technical information can be searched online.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-10 01:30:01
| Show all posts
I'm free, let me try the idea above
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list