menimeni 0 Newbie Poster

I want to print a file using win32api. I have a network printer using this ip: 192.168.1.50

So i used this code:

import win32api
file_path="test.txt"
win32api.ShellExecute(0, "print", file_path, None, ".", 0)

How can i print this file on the printer that i don't have the name but the ip?

Its my first post here because i have been banned from Stack Overflow bacause im brazilian and have a bad english (not too much) i hope you help me :) .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.