Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any "hello world" for it? #3

Closed
gm100861 opened this issue Jan 16, 2018 · 4 comments
Closed

any "hello world" for it? #3

gm100861 opened this issue Jan 16, 2018 · 4 comments

Comments

@gm100861
Copy link

Hello, i was build https://play.golang.org/p/tI-7R98hHa , and it was does't work. i can see task to printer, but printer not work. any one can help me?

my os is windows 10, go version go1.9.2 windows/amd64
my printer is network printer.

@alexbrainman
Copy link
Owner

but printer not work. any one can help me?

Your printer must be able to understand the data in the file that you have printed. What is in the file? Can you try and print plain text file?

Alex

@gm100861
Copy link
Author

gm100861 commented Jan 17, 2018

C:\isos\go>go build pdemo.go C:\isos\go>echo "hello, printer" > c:/isos/demo.txt C:\isos\go>pdemo.exe c:/isos/demo.txt

then, i found the system log. like this
honway 拥有的文档 打印文档 无法在打印机 HP LaserJet M1120 MFP Class Driver 上打印。请尝试再次打印文档,或重新启动后台打印程序。
数据类型: RAW。后台文件大小(以字节为单位): 22。打印的字节数: 22。文档页面总数: 1。打印页面总数: 0。客户端计算机: \DESKTOP-20JA7BH。打印处理器返回的 Win32 错误代码: 2147500037。未指定的错误

i google error code 2147500037, but not found any solution

@alexbrainman
Copy link
Owner

then, i found the system log. like this

I do not understand what it says.

but not found any solution

I am not sure if it will help, but I would try this PR #2 Other than that I do not know. Sorry.

Alex

@alexbrainman
Copy link
Owner

@gm100861 please try https://github.com/alexbrainman/printer/tree/fix1 to see if that fixes your problem.

Thank you.

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants