From owner-freebsd-questions@freebsd.org Mon Apr 25 23:42:00 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 6602CB1C2AF for ; Mon, 25 Apr 2016 23:42:00 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU004-OMC2S2.hotmail.com (blu004-omc2s2.hotmail.com [65.55.111.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32A8813D8 for ; Mon, 25 Apr 2016 23:41:59 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU437-SMTP49 ([65.55.111.72]) by BLU004-OMC2S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 25 Apr 2016 16:41:53 -0700 X-TMN: [VuUu37GrakveXyPYER61uVTGiB6mS7jO] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: Subject: Re: How to access CUPS printer from wine applications ? To: Polytropon References: <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> <20160423190136.e92c98e3.freebsd@edvax.de> <20160424195059.05115996.freebsd@edvax.de> <20160425113525.81dc074f.freebsd@edvax.de> <20160426004805.f9ee6b3c.freebsd@edvax.de> CC: freebsd-questions@freebsd.org From: Manish Jain Date: Tue, 26 Apr 2016 05:10:16 +0530 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160426004805.f9ee6b3c.freebsd@edvax.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Apr 2016 23:41:49.0802 (UTC) FILETIME=[099C3CA0:01D19F4C] 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 23:42:00 -0000 On 04/26/16 04:18, Polytropon wrote: > On Mon, 25 Apr 2016 15:48:39 +0530, Manish Jain wrote: >> On 04/25/16 15:05, Polytropon wrote: >>> 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? :-) >>> >>> >> Printing from wine is not particularly important : it would just have >> been a nice add-on functionality that would have eliminated the >> occasional need to boot into my Windows XP installation. > I hope it's an "offline installation". :-) > > > >> Although I shall install AbiWord as you have suggested, there is a >> freelance writing project that I am involved in, and those guys want MS >> .doc strictly, with a lot of formatting rules that are most easily >> accomplished under MS Office. As for the version of Word (2000) that I >> strongly prefer - I find the appearance of new Office applications >> pretty obnoxious, mostly owing to the Ribbon that the new versions of >> Office use. > In this case, OpenOffice or LibreOffice will probably a good way to > avoid using a "Windows XP" only for word processing. Both programs > can import and export various DOC formats quite well, and the support > for a 15+ years old format should be stable and reliable. Furthermore, > the GUI that includes hierarchical menues with logical structure (a > concept which users have learned to use over decades) makes it easy > to work with the program. > > I had to work in a multi-OS environment for some times, and few users > still used "Office 2000" products, while everyone else has moved on > to use OpenOffice. Interoperability of documents was not a problem, > users were using "Windows" as well as different versions of Linux, > BSD, and even a few had Mac OS X. OpenOffice was the tool everyone > loved for collaboration and file exchange. Later on, when systems > needed to be upgraded, the few remaining "MS Office" users happily > changed to OpenOffice. > > Today, I'd probably suggest using LibreOffice, but I'm not sure if > that's still the right program to suggest, as there is also OpenOffice. > Which of those two (most commonly known) free office suites is the > one that's preferred today? > > I just installed AbiWord. And I think it is good enough for my needs. Thanks. Manish Jain