473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[reportlab] print directly to printer

I have deonwloaded and tested reportlab, which seems to be good enough for
my needs with printing reports, formatted text and such things.

But i have a question:

I have not seen any hint in the docu how to print a generated PDF directly
to the printer in a portable manner, it has to work under all OS's

any comments ?
--
Greetz Karlheinz Klingbeil (lunqual)
http://www.lunqual.de oder http://www.lunqual.net
Jul 18 '05 #1
1 3405
On Thu, 18 Dec 2003 19:27:10 +0100, Karlheinz Klingbeil wrote:
I have deonwloaded and tested reportlab, which seems to be good enough for
my needs with printing reports, formatted text and such things.

But i have a question:

I have not seen any hint in the docu how to print a generated PDF directly
to the printer in a portable manner, it has to work under all OS's


On some UNIX systems (mine and others with a suitable
PDF->printer_langua ge filter), open a pipe to 'lp' and feed the PDF to
it. On other UNIX systems you'll need to convert the PDF to PS first,
then pipe it to lp. (PS is the standard interchange format for
printed material)

On Windows - I have no idea.

Is your program GUI-based or not? If it is, then I think wxPython has
some printer abstraction code you can use to let the user choose the
printer, etc. Otherwise I don't know of any existing packages to
insulate you from platform differences in the printing sub-system.

--
The fear of the Lord leads to life:
Then one rests content, untouched by trouble.
Proverbs 19:23

www: http://dman13.dyndns.org/~dman/ jabber: dm**@dman13.dyn dns.org
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5353
by: mcmahongg | last post by:
Hi I want to print to a Seiko SLP 220 printer from PHP (printer is connected to COM1; and works fine via the Seiko label print application program). I've tried code like : $str = "Sample Test Label" . $cr . $lf . $esc . "Z"; $fp = fopen("COM1:", "w+");
5
13385
by: MouseHart | last post by:
I've written a simple program in VB 6.0 to list all my MP3 files. To show them on the screen I used an MSFlexGrid named TextGrid (which is not associated with any table or text file) in the following code run by a button (the files are all in the format "Artist - Name Of Song" in their directories, which is why the code looks for a dash): Private Sub Command1_Click() Dim dashplace%, length% For I% = 0 To File1.ListCount FLIName =...
7
6556
by: bclegg | last post by:
Hi, I have a Monitoring application that needs to output single line summaries to a local dot matrix printer loaded with line flow. ie. It will have exclusive use of the printer which is connected to LPT1. I need to get the normal number of lines to each page. ie 60 summaries onto a 66 line lineflow page Am I restricted to the Printdocument object and graphics printing or is there a way to do a single line text print?
1
5316
by: David Templet | last post by:
I have a C# application that generates its reports in HTML. After it creates the report, it opens it in IE so it can be viewed or printed. I would like to add the ability to print the report directly from the application, but I haven't found an easy way to do this. I am probably making it overly complicated, but this is what I am doing right now: 1. Instance an "AxWebBrowser" control 2. Navigate the browser control to the report HTML...
0
1510
by: What What | last post by:
I'm trying to print a report to a printer directly using PHP printer function. I have code like the following one. <? if($handle=printer_open()){ print "Printer Connected<br>"; } printer_write($handle, "Text to print"); printer_close($handle); ?>
0
2980
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the report directly to the printer bypassing the Crystal report viewer altogether. When sending the job directly to the printer I use the PrintToPrinter command CR.PrintToPrinter(1, False, 0, 0)
0
1956
by: neeraj | last post by:
Hi all I have developed on desktop application in Visual Basic for Hotel Management and my client requires multiple printing options here I have multiple printers first default printer which directly connected with source PC other one is in network. The situation is when user give the print command he must be select one respective printer which is in network and secondary printer is
4
3543
Rabbit
by: Rabbit | last post by:
Here's my question. Does my connecting to the printer by IP affect the print server? The circumstances surrounding this question follows below. We have 16 network printers, most of them HP 4250n's, on a new print server that have intermittent corrupted prints. Every so often, a user will have a document that prints up to a certain point and the rest comes out garbled. And it does it on every printer and switching computers doesn't help. ...
10
8843
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10300
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.