From owner-freebsd-questions@freebsd.org Mon Apr 25 09:35:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75351B1A1A0 for ; Mon, 25 Apr 2016 09:35:35 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3AB271F66 for ; Mon, 25 Apr 2016 09:35:34 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-216-66.dynamic.qsc.de [92.195.216.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 21F012502D; Mon, 25 Apr 2016 11:35:25 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u3P9ZPNG002011; Mon, 25 Apr 2016 11:35:25 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 25 Apr 2016 11:35:25 +0200 From: Polytropon To: Manish Jain Cc: freebsd-questions@freebsd.org Subject: Re: How to access CUPS printer from wine applications ? Message-Id: <20160425113525.81dc074f.freebsd@edvax.de> In-Reply-To: References: <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> <20160423190136.e92c98e3.freebsd@edvax.de> <20160424195059.05115996.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2016 09:35:35 -0000 On Mon, 25 Apr 2016 14:35:14 +0530, Manish Jain wrote: > I am trying to do something complicated with my HP 1112 printer that is > working very nicely with cups. I want my Microsoft applications (MS > Office::Word 2000 chiefly) installed under Wine to be able to access the > printer. Is there any way I can do that ? Not tested, just an idea: If Wine has networking functionality, you could enable the printer in CUPS for sharing on the "virtual network" and then access it as a network printer from within the application that wants to print. The default output should be PS (Postscript), as this is the easiest (and standard) format to feed into printer queues. Make sure to restrict the printer access locally. If this fails, you could use the "Print to file" functionality and save the file to a specific directory that's accessible from the application running under Wine. Use "winecfg" to assign a "drive letter" to that directory, so it's easier to write files there (for example P: for "printer"). Then have a shell script check for new files in that directory and feed them to lpr, then delete it. As I said, when this is PS data, it shouldn't be problematic. Wine's access to USB, and then using the "Windows" software for printing, is probably not possible to achieve. Also keep in mind Wine probably doesn't have a full printing subsystem and sufficient driver support. Doing so from a VM (with a "Windows" installed in it) is surely easier, but also more "voluminous". Follow-up question: Why don't you install OpenOffice / LibreOffice / AbiWord and use your documents from there? Is there a reason to use a more than 15 years old office application? Do you have a specific need to make it that complicated? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...