| |

VerySource

 Forgot password?
 Register
Search
View: 968|Reply: 5

(C#.Net printing programming) How to set the printed paper size in the program?

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-12-7 20:30:01
| Show all posts |Read mode
The program is used for invoice printing. It turns out that I did this by setting the printer paper size in Windows, but there is also a downside: the program may have to be reset if it is used on another computer. Can you set it up in the program, it will be much more convenient!
    I hope that friends who have compiled such programs will give me a lot of pointers! Thank you first!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-12-7 22:15:01
| Show all posts
Why don't you directly use the existing page settings on Microsoft's IE? Our company uses it in this way, so that customers can directly use that
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-12-8 14:45:01
| Show all posts
Let the customer set it directly, which is error-prone and inconvenient. If I edit it myself in the program, it can be convenient for the customer, but now I don't know how to set it in the program. I use C#.Net. A PaperSize class, but it seems that you can only set documents and not assign values ​​to printers. Please help!
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-12-8 15:45:01
| Show all posts
problem solved!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-8 17:00:01
| Show all posts
How did the host solve it? Tell me and share it
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-8 17:45:01
| Show all posts
How can I solve it? I also encounter this problem from the original poster, can you tell us
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