How can I print (as in laser printer, not the python print statement)
HTML from Python (actually it doesn't have to be HTML - it's tabular
data with some rows/columns highlited).
The project currently uses Python 2.4 with wxPython and pywin/winpy
(whatever it's called, for MS Access ODBC), so if it can be done easily
in one of those, that'd be great, but if there's a module which makes it
a breeze, I'm happy to download that too.
--Max 3 1935
Max <rabkin@mweb[DOT]co[DOT]za>: How can I print (as in laser printer, not the python print statement) HTML from Python
Is the printer attached to your server, or are you printing over the
internet?
--
Ren Pijlman
Rene Pijlman wrote: Max <rabkin@mweb[DOT]co[DOT]za>:
How can I print (as in laser printer, not the python print statement) HTML from Python
Is the printer attached to your server, or are you printing over the internet?
I'm not sure if the printer is attached to the workstation (probably) or
over the network, but it'll definitely be installed as one of the
windows printers. (I guess I should have mentioned the fact that I'm
working for windows - but I did say I was using MS Access and pywin32).
--Max
Unknown wrote: Rene Pijlman wrote:
Max <rabkin@mweb[DOT]co[DOT]za>:
How can I print (as in laser printer, not the python print statement) HTML from Python
Is the printer attached to your server, or are you printing over the internet?
I'm not sure if the printer is attached to the workstation (probably) or over the network, but it'll definitely be installed as one of the windows printers. (I guess I should have mentioned the fact that I'm working for windows - but I did say I was using MS Access and pywin32).
wxPython has a printing framework that works more than adequately under
Windows. If you have the wxPython demos installed (nowadays they are a
separate download) look under "Miscellane ous/PrintFramework" to find
working code.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Preston |
last post by:
Admission first - I don't actually have a problem here but have noticed
that a lot of people have been asking similar questions and getting very
varied answers. What I've done is to sort of "compile the questions"
into a theoretical problem to see what people think should be done to
solve it.
Maybe it will be a worthwhile discussion, but more importantly maybe it
will find out the very best way to sort this kind of problem out so that...
|
by: Dennis C. Drumm |
last post by:
I was wondering if someone could suggest were/how I could get started with
setting up printing of a collection of text that includes tables from a grid
and other supporting information about the grid's contents. If you could
just point me at the classes that I should consider and some very broad
guidelines that would be great. For instances, would a good approach be to
build an rich text document somehow with the proper formatting and then...
|
by: Ahmad Abu-Raddad |
last post by:
Hey Guys,
Does anyone knows of a way to print HTML source directly to the printer
(Server Side)?.
I tried the PrintDocument class and the e.Graphics.DrawString and
e.Graphics.DrawImage() but these does not take HTML.
If anyone can help please do.
|
by: Raymond Du |
last post by:
Hi,
I have serveral web forms used by users, these users often use IE browser
print function to print out the form, the problems I have is what users see
on the screen is usually different from what's being printed. Somtimes it
looks good on screen, but it wraps differently in printing. How do I format
the HTML so it will look the same in screen and printing? The paper size is
always 8.5x11, should I set HTML to a certain width say...
|
by: Amirallia |
last post by:
Hello!
I have a wecontrol table in a page, this table has a number of variable
rows depending of the choice of the user.
But when the table has a large number of rows, the printing of the page
requires 2 pages . The first page is ok, but in the second page of the
printing I have no ligne of the row and no ligne of the column printing
on the page!
| |
by: Jurjen de Groot |
last post by:
I'm about to start a new ASP.NET application, this application will
generate several types of documents (PDF HTML XML-DOC) wich have to be
printed at the client-side... (probably on different printers A3 and A4
type)
At this time I'm trying to figure out what would be the best way to
accomplish this :
1. printing through HTML in a IE windows will result in page title &
nr as header and URL + Date as footer, wich is far from acceptable....
|
by: Alex Clark |
last post by:
Greetings,
(.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs).
I've decided to take advantage of the layout characteristics of HTML
documents to simplify my printing tasks, but of course it's thrown up a
whole host of new issues...
I'm generating a multi page printable document in HTML from my app, and
displaying it in a WebBrowser control. I've looked into using some CSS
|
by: Lucas Ponzo |
last post by:
Hi All,
I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket
pc ...
I need to print a page. But I need that the page print on a printer
installed on the web server hosting my application.
Step 1)
The user clicks the Print icon in the web page
|
by: Neo Geshel |
last post by:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).
My flash content was originally brought in via the “flash satay” method,
but I have since used some server-side magic do deliver one <objecttag
|
by: nikhilgargi |
last post by:
Requirement:
I need to provide printing capability in a C# desktop application that I am developing
The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom application specific headers are to be added in the print out.
Problem:
The System.Drawing.Printing namespace .Net provides objects and dialogs to take care of basic print tasks. But there is no native support of printing RTF and HTML formats.
One would...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |