| |

VerySource

 Forgot password?
 Register
Search
View: 1573|Reply: 12

Printing problem, can't figure out

[Copy link]

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Invalid IP Address

Post time: 2020-2-12 20:30:01
| Show all posts |Read mode
ObjPrint.Font.Name = "Songti"
    ObjPrint.Font.Bold = False
    ObjPrint.CurrentX = lCurx + lm
    ObjPrint.CurrentY = lCurY
    ObjPrint.Print sMtxt

ObjPrint is an object of type Printer object
The phenomenon that appears is
ObjPrint.Print sMtxt, the page will be changed immediately, and no matter whether sMtxt has a value or not, it will be blank.
Use Printer instead, the same.
If it is said that it is a driving problem, it is easy to print a text with WordPad. There is nothing wrong.
Who encountered this problem? Help me out?
Reply

Use magic Report

0

Threads

14

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-4-12 19:00:01
| Show all posts
Printer.Font.Name = "Song"
    Printer.Font.Bold = False
    Printer.CurrentX = 10
    Printer.CurrentY = 10
    Printer.Print "Hello!"
    Printer.EndDoc
no problem
Do n’t forget to add EndDoc
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-4-18 14:15:01
| Show all posts
Still working on printing, it is better to spend 100 yuan to buy a control, which is better than word and excel printing.
Reply

Use magic Report

0

Threads

10

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-28 13:30:01
| Show all posts
ObjPrint.CurrentX = lCurx + lm
    ObjPrint.CurrentY = lCurY

Is it beyond the paper?
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Nigeria

 Author| Post time: 2020-6-5 19:45:01
| Show all posts
lm was written by me, with tiwp as the unit.
lCurx starts from 200, and the printing code is only wrong on individual printers, and there is no error on general printers.
But the customer is using this kind of printer that can make mistakes in code, and the customer is seriously uncooperative and will never change the printer.
Out of paper range? Is it possible that the printer can set the unit size? In pixels?
Can the printer not automatically transfer?
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-6-6 00:30:01
| Show all posts
The lm span is generally around 900.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-14 19:30:01
| Show all posts
Add one at the front:
ObjPrint.ScaleMode=vbtwips
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-7-15 16:15:01
| Show all posts
Thank you for going to see if it works.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-8-3 03:00:01
| Show all posts
Still not working, is there any other reason?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-3 13:30:01
| Show all posts
Use the control ActiveReport is easy to use
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