0
голосов
2ответов
902 просмотров

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 PrintPr...

1
голосов
1ответов
2914 просмотров

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 r...

5
голосов
3ответов
264 просмотров

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 it...

4
голосов
3ответов
4302 просмотров

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 canv...

6
голосов
1ответов
2462 просмотров

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 ps...

6
голосов
5ответов
3749 просмотров

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.

2
голосов
2ответов
5557 просмотров

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 p...

1
голосов
1ответов
685 просмотров

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 th...

0
голосов
1ответов
465 просмотров

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

0
голосов
1ответов
94 просмотров

Nothing Printed

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_M...

0
голосов
4ответов
1079 просмотров

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 S...

0
голосов
1ответов
768 просмотров

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.getElementB...

0
голосов
1ответов
714 просмотров

Browser related: css print style sheets - stopping client download overhead with @media

Hopefully I can explain this well and hopefully I'm thinking the right way :) My question is, If I have a print style sheet that has a couple of classes that "displays" a background image, is there a way to make the browser download the images at the point of printing or do you have to preload t...

1
голосов
2ответов
1432 просмотров

How do I set a specific printer for a report?

I want to print a customized report to a specific printer, bypassing the print dialog. The printer is to be selected by the user for each report template. Right now I have the code to print the report showing the print dialog, or directly to the default printer. I need to change it in order to ...

93
голосов
18ответов
234590 просмотров

Easy pretty printing of floats in python?

I have a list of floats. If I simply print it, it shows up like this: [9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006] I could use print "%.2f", which would require a for loop to traverse the list, but then it wouldn't work for...

0
голосов
2ответов
212 просмотров

lots of text within pre tag is causing a page break

I have a pre tag within my page that contains quite a bit of text. When I preview this page in the browser it looks fine. But when I go to print it, everything within the pre tag is printed on a new page. It is like the pre tag is causing a page break. I am using css to word wrap the text of th...

2
голосов
1ответов
1067 просмотров

How can I print Office documents from .NET in a uniform manner?

Using Microsoft interOp objects, I can programmatically print a Word or Excel document. Is there any simpler and uniform way to programmatically print all types of documents (.txt, .doc, .xls, .pdf etc.)?

0
голосов
2ответов
1822 просмотров

How do you Print in WPF (VB)

I have a WPF form that has a toolbar then a StackPanel under it with several controls inside of the StackPanel. One of the buttons on the toolbar is to print. I need to know how to print in a WPF, and more specifically how to print just what is inside of the stackpanel. I am using Visual Basic.NET

9
голосов
4ответов
4524 просмотров

html print a very wide page on several A4 sheets

I have a page with a wide (say around 3000px) horizontal graph which is normally scrollable. In the printing version I render the entire graph, (I actually have a separate JAvascript/HTML code for the printing version), so it takes lets say three A4 widths (landscape) on the screen. In this sit...

0
голосов
2ответов
305 просмотров

to remove href attr from all the anchor tags using Reg Ex

i am trying to remove href attr from all the anchor tags using Reg Ex,for print page. Although i need the text value in anchors.

2
голосов
5ответов
1578 просмотров

is it possible to have a link/button that directly prints a document via website?

is it possible to have a link/button that directly prints a document via website?

17
голосов
2ответов
35811 просмотров

Possible to force printer setup (paper size) in javascript?

I have a need to print pages from a web app on to 8" x 4" index cards. IE doesn't save print settings from one print to the next, so is there a way to programmatically force the print set up?

141
голосов
6ответов
274133 просмотров

Margin while printing html page

I am using a separate style-sheet for printing. Is it possible to set right and left margin in the style-sheet which set the print margin (i.e. margin on paper). Thanks.

0
голосов
1ответов
663 просмотров

Acessing Printers and Faxes folder on a network machine in asp.net

From my vb.net code I am trying to set a printer name for the crystal reports printing rpt.PrintOptions.PrinterName="\johnKing\HP LaserJet 2200 Series PCL" But when I go to windows-->Start--> Run and enter \JohnKing It is showing me Printers and Faxes folder and Scheduled task folder. Bu...

1
голосов
4ответов
3176 просмотров

How to add a new button to PrintPreviewDialog in C#?

I have a program where I can switch between different layouts in my print doument (a4, a5 or a6 sized graphics drawings and whatnot. Print document is always a4 sized). I can show this document in a PrintPreviewDialog but I have to manually specify in the code before hand which layout I want to s...

554
голосов
9ответов
819799 просмотров

How to print instances of a class using print()?

I am learning the ropes in Python. When I try to print an object of class Foobar using the print() function, I get an output like this: <__main__.Foobar instance at 0x7ff2a18c> Is there a way I can set the printing behaviour (or the string representation) of a class and its objects? For ...

9
голосов
7ответов
10104 просмотров

How can I print to a variable instead of a file, in Perl?

How can I print to a variable with Perl? I've been working on a program for a while which logs its iterative progress in a highly verbose fashion... print $loghandle $some_message; However, I'd like to also selectively print some of the messages to a different file. Naturally, I could sprinkl...

1
голосов
2ответов
583 просмотров

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript format when printing to a file?

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript or XPS format when printing to a file?

1
голосов
1ответов
1572 просмотров

Printing in C#/.NET, scaling on a whole page

I am wondering how to do the following ( couldn't get google to help me here ): I got a .jpg file of about 250px*250px in scale.. I want this image on a DIN-A4 page as often as possible I need an "overlay" for every image on the page with a unique code ( lets say a unique barcode for example ) ...

7
голосов
4ответов
4038 просмотров

How would one implement bash-like tab completion?

I'm trying to determine how the system prints characters to standard input -- that is, how it prints characters which the user can delete and which are considered input if the user hits "Enter." I happen to be using C, but I would be very surprised if the solution were language-dependent. Thank...