printing

Programming nozzles for print application

I'm creating a custom set of print nozzles and need to program it to function like an inkjet printer. I am not a very experienced programmer, but I do have a good foundational knowledge (basic C++, MATLAB, PHP, HTML, CSS). I don't expect anyone to tell me exactly how to do this here, but if anyone can give me some pointers on where to st...

wxpython printing html

How it is possible wxHtmlEasyPrinting to force to work with utf-8 encoding? # -*- coding: utf-8 -*- import wx import wx.html as html import wx.lib.printout as printer class MyFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(450, 500)) wind = wx.SplitterWindow(se...

Internet Explorer discards cookie when printing?

I have an unusual issue with this printing under IE7/8 (likely 6 as well). My page contains a dynamically rendered graph. The contents of the graph are determined by the identity of the user who visits the page. The page is not available without prior authentication. The page loads and renders correctly in IE7/8. However, the graph doe...

[FLASH CS4] Print button code in AS3?

Hi everyone, I'm building a stand alone flash application and i have a problem. I need to have a print button on every step of my app and to print that particular frame as a bitmap image same size as that window. Can someone provide me with a code for that one? I searched everywhere for a month now and still couldn't find it. Ask on man...

Printing CALayers

I have a NSView which contains many CALayers. When a user is editing a document, these CALayers animate all edits. I am attempting to implement printing for my app, but I am having some problems printing these CALayers correctly. Some CALayers bounds occupy the entire NSView, and do not need to be laid out, because their position never ...

Child processes created with python multiprocessing module won't print

I have a problem with the code below, and with any code that uses the print function in the child processes: I can't see any printed statements, even if I use sys.std[err|out].write('worker') in place of print. This is the code (from the official python documentation): from multiprocessing import Process def f(name): print 'hello'...

PHP: "unexpected $end" in the middle of a file

When I try to run this page (video.php), I get the following error: Parse error: syntax error, unexpected $end in /base/path/masked/inc/functions.php on line 37 The strange thing is "functions.php" has more than 37 lines... why is it detecting an end of file there? I don't think I'm missing any parens or brackets since each funct...

C# Network Printing

I am able to get the list of network printers via this code: private void Form1_Load(object sender, EventArgs e) { foreach (String printer in PrinterSettings.InstalledPrinters) { listBox1.Items.Add(printer.ToString()); } } For each network printer, I want to extract out more information like: (a) get document information, li...

Which Windows API opens the print properties dialog?

I would like to hook into an Office application just before the print properties dialog is opened (the dialog where you choose the paper, printer, etc.). Which Windows API opens this dialog? ...

JQuery printfunction: no content, no view

I got a JQuery printfunction: function doPrintPage() { myWindow = window.open('', '', 'titlebar=yes,menubar=yes,status=yes,scrollbars=yes,width=800,height=600'); myWindow.document.open(); myWindow.document.write(document.getElementById("studentnummer").value); myWindow.document.write(document.getElementById("Voornaam").v...

Printing LineShape in WinForms

I am printing an invoice from a winforms form. All is great. But I want to draw boxes that will show up on the printout. I want to use lineshape from VB powerpack. However, if I could print the line outline of textboxes I would want that as well. If I use lineshape the ControlCollection should not have it since it doesnt not descend fro...

How to fix the size of the printing area while using window.print?

Hi I'm creating a invoice and have option to print the invoice. While printing i use a stylesheet (using media=print) to block the display of elements which should not be printed... But while printing it takes the full size of the window and uses that much paper.. I want to restrict the size of the printing area.... How can i do that...

CSS framework for printing A4 format

Hello, I'm trying to layout printable magazines on a web application, using XHTML and CSS. It's not easy ! I would like to know if a CSS framework could help me handling page format, positioning and physical units like millimeters. Some details I forgot. The magazines are not printed directly by the user with a print.css. The applicatio...

CSS Page Layout w/ Breaks

I'm trying to make a webpage where it basically looks like a word document. There would be multiple boxes that would scroll down and the text would flow and page break from one page to the next. Does anyone have any idea where I would even start? Thanks. Edit: It should be right in the browser, looking similar to this: (Ignore the c...

INI file reverse engineering

I am maintaining a legacy application which prints product labels on packaging. The format of the label is stored in a INI file. I wanted to know if anyone has any hints about the meaning of this format. I have pasted a snippet here. {D1531,1000,1501|} {C|} {U2;0130|} {D1531,1000,1501|} {AX;+000,+000,+00|} {AY;+05,0|} {PC000;0922,0555,...

Should i keep #wrapper{ width:100%} in print css?

Should i keep #wrapper{ width:100%} in print css? because on screen my design is a fixed width design 960 px. but there are so many paper type and sizes in the world and anybody can take print on any size paper, bigger and smaller. So if in print css i do not specify relative width then i think print of page will cut of from right size ...

PHP and MySQL - Printing rows matching a column value

Hello, I need to write a PHP script that will print out results from a MySQL database. For example, say I have 9 fields. Field 1 is an auto increasing number, field two is a three digit number. I need to be able to have a script read, find the matching number (it'll be from a POST), and then display all matching three digit results, a...

Add a virtual driver using C#

How to add a virtual driver that contains functions that calls C# functions inside a DLL file. ...

Making a lightbox support printing on web page

I know the idea is to use a separate stylesheet for printing that hides everything other than the lightbox when the user clicks the print button on the lightbox. It sounds easy but there are always some obstacles. So I would like to know if there is any working example that supports all major browsers. I searched in google and found ma...

Eclipse CDT printing selected C code snippets/functions

Is there a quick and dirty way to print(to dead trees) selected code (C in this case) snippets? In particular, I wanted to print about 200 lines worth of code, but print dialog only offers printing of particular pages or all pages, but not selected text! Of course, one can copy and paste into another editor, but that seems rather harsh...