printing

Specifying a custom media size with java printing

I need to specify a custom media for printing on a 32x48 sheet of plotter paper without using a page setup dialog. The MediaName class hints at creating a custom MediaName subclass, but there's no way to specify a custom media size with this MediaName. How does one print to custom-sized media from within Java? I am using the java 1.3+ ...

How to code JS toggle to print in automatically expanded view?

First, here’s the page question: http://www.tranzact.com/test/solution_freightfaqs.html I used a simple “Print Page” function (below): <a href="#" onclick="window.print();return false;">Print Page</a> Below is the toggle.js script: function toggle(theID) { if(document.getElementById(theID).style.display=='none' ){ document.getEle...

WPF in a browser and printing

Can WPF be hosted in a web browser? If so how? (I think it can as I have seen some examples of it.) While hosted in the web browser what printing support does it have? What are the drawbacks to using WPF in a browser? My company is looking for a rich web app platform. They will not choose Silverlight because it ignores any printing...

Nothing Printed

Hello, I'm learning Objective-C and using GNUStep, but when i try to execute my very simple Hello World application, just to test, it doesn't printed nothing. My code is like this: // main.m #include <stdio.h> int main(void) { printf("Hello, World\n"); } Here is the GNUmakefile: GNUSTEP_MAKEFILES = /GNUstep/System/Library/Makef...

print entire directory of text files to printer with filename as header using bash or openoffice basic script

I want to print an entire directory of text files to a printer inserting the file name at the top of the first page of each file that is printed. A bash or openoffice script would serve me well. Thanks ...

Flex printing on OSX pushes image off the page. How can this be fixed?

My Flex 3 app prints pages just fine from browsers on Windows using FlexPrintJob (not the browser print function). However, on OSX, the left and top margins show up larger and the page gets pushed off the right and bottom. Basically, the scaling is screwed up, and I can't see any way to adjust the margins in code. Has anyone seen this ...

How to open print-preview page upon clicking on hyperlink ?

Every browser has print preview command in their File menu I want to make "print" button on HTML page and upon clicking i want to open print preview page. is this possible? With this we can open print options <a href="javascript:window.print()">Print this page</a> but can we open print-preview page instead print options ? ...

How can I get the IP address of a network printer given the port name using the Win32 API?

How can I get the IP address of a network printer given the port name, using win32 API? I tried looking into the PRINTER_INFO_* structs, but it seems it is not present there. ...

DOS legacy application with USB printer.

I have the unfortunate task of doing (minimal) maintenance work on two legacy applications developed in DBIII+/Clipper '87. I have full access to source and a minimal toolchain to recompile the application when needed, but I am not allowed to reimplement it from scratch due to various (mostly psychological) reasons from the main user. ...

Problem printing contents of Canvas tag (Chrome, Opera)

These browsers (Windows versions) correctly print a web page which has a canvas overlay over an img tag image: IE6, IE7, IE8, Firefox, Safari But Chrome (up-to-date as I type this at version 3.0.195.27) and Opera (up-to-date as I type this version 10.0 build 1750) don't. Chrome ignores the canvas rendering entirely. Opera renders the e...

HTML specify print pages?

I am making a table of data that needs to printed out. I want the header to be at the top of each page. SO I am thinking the best way to do this is to repeat the header maybe every 30 columns or so, and break it into sections. But theres still no way to ensure that each section gets printed on its own page that I know of. Does anyone kno...

Is it possible to set page layout for an SSRS report using report parameters?

I'm using SSRS to generate reports in my app. My app calls the web service behind the scenes. In some cases I render the report using the ReportViewer web control, in other cases (if user is using Webkit based browser for example), I just allow them to download a pdf of the report. I set the report parameters programatically. How ca...

IE printing landscape vs. portrait screwed up

We have a html/CSS page we're using a print style sheet for to make it print out nicely. Looks fine in PRINT PREVIEW in Firefox and IE. However, in IE, when you get to PRINT PREVIEW, it shows you the page as it will print in portrait layout. If you then click the LANDSCAPE layout, our page breaks. Some objects no longer appear. Before ...

How can I implement a Print Preview function for a C# object that doesn't expose a PrintDocument object?

[Disclaimer: I looked at the related questions and could only find relevant material for MFC. I don't do C++] I've got a C# .Net app that uses a OCX control via interop (the control being a viewer component for CGM images). The control exposes a Print() and PrintSetup() method but not a PrintPreview() method. There's also no exposed P...

IE Print CSS and spanning page breaks

I've been working on trying to fix an issue with print CSS and IE where things would disappear when printing in landscape mode. It appears the issue is that the element I'm trying to print (a large DIV with content inside it) spans two pages when put into landscape mode. What is happening is when the element spans two pages, the first ...

Save Printer Setup Parameters

I am writing a program using Delphi 2006 and storing data in XML files and a Firebird database. I create reports using either FastReports, Excel or QuickPDF. I allow my users to package several reports together and be directed to a destination of their choice, whether it is a PDF file, a printer, the screen, or email. I want my users ...

how to get a physical printer status before printing job is sent?

I have a rather unusual problem. I am using xpdfprint binary for the print job from my application. But if the user has a "directly print to the printer" setting enabled and by mistake if the printer is not available (power failure or cord not plugged in) then the application hangs. It seems to be a standard behaviour since in my machine...

Problem with IE8 and printing a fillable form

I have created a fillable form (html) on the intranet site at work for training. The form is a short quiz with checkboxes and text for name, date, etc. For now I am just trying to let them fill in and print the form to hand in. In IE7 it works fine, however in IE8 the text prints, but the checks in the checkboxes won't. Anyone have any ...

Pythonic way to print a table

I'm using this simple function: def print_players(players): tot = 1 for p in players: print '%2d: %15s \t (%d|%d) \t was: %s' % (tot, p['nick'], p['x'], p['y'], p['oldnick']) tot += 1 and I'm supposing nicks are no longer than 15 characters. I'd like to keep each "column" aligned, is there a some syntactic suga...

Customizing Print to File in WIndows

I have a requirement where my client want to install a custom "Print to File" printer (apparently MS has an SDK for this?). They want to be able to install this as a kind of "application" so that if someone chooses to print to this printer, they have to answer a few questions, and the file gets "printed" to a path of our choosing. (we ...