printing

PrintPreview not OK in combination with PrivateFontCollection

Hi all, I am currently dealing with the problem mentioned in this Microsoft Connect Feedback: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=96049 The only difference to this feedback is that in my code the bug occurs only under Vista. As the problem still seems to exist, has anyone here on SO found a ...

merged cell's contents cut off beyond page break

I have a vb .net program that exports information to certain fields of an excel workbook using named ranges. One of the named ranges is a notes section that gets cut off (not visible nor gets printed) if it extends beyond a page break. I am looking for a way to dynamically create new named ranges to accommodate all of the notes' text. S...

Printing Excel using Interop

Does anybody have any idea how to print an excel file programatically using C# and the Excel Interop? If so, can you please provide code? ...

PrinterSettings.InstalledPrinters on Vista

I have a WCF service hosted on a Windows Service application and it should return all installed printers on the machine it is hosted on. I have used System.Drawing.Printing.PrinterSettings.InstalledPrinters to retrieve the list of installed printers but I don't know why in Windows Vista it doesn't return all printers. The host Windows ...

printing a HTML form

I am trying to print a page using javascript, it works fine but the issue comes with a page havign form inside it. If we print the form values being printed are fine but what we get is html controls (like input ,dropdown) are also being printed. Can some one have any other idea except server side processing ...

can PHP do something like p($i) and it prints "$i is 5" -- C and Ruby can... (that is, to print out "$i" automatically)

I was wondering if PHP can do this as there seems to be no good solution to it yet: p($i) and it will print $i is 5 and p(1 + 2) will print 1 + 2 is 3 and p($i * 2) => $i * 2 is 10 p(3 * factorial(3)) => 3 * factorial(3) is 18 C and Ruby both can do it... in C, it can be done by stringification, and in Ruby, there i...

Can I print a standard test page in code-behind in .NET 3.5?

Is there a way to print a standard test page in WPF from C# code if I have the name of a network printer? Thanks! ...

Using Excel Interop and getting a print dialog

Hello All! I have the following code: [Thank you Mike Rosenblum!] using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; namespace ConsoleApplication17 { class Program { static void Main(string[] args) { //pu...

Could you please give me the function of taking print screen and convert in to jpg in javascript or flash.

Could you please give me the function of taking print screen and convert in to jpg in javascript or flash ...

Persisting the scroll position of DIV while printing

I would like to print scrollable div as WYSWYG. Is there a way? ...

Text Wrapping when printing DataGrid? .Net

I'm trying to print a DataGrid in a windows forms app and when the width of the columns is set (it's customizable) too narrow to fit the text it just truncates the text instead of wrapping it. Is there a property in DataGrid that sets text wrapping? I've added some code to perhaps help with diagnosis of the issue. private void PrintRow...

Report decent printing in the web.

As a web systems programmer, I'd like to generate some reports and be able to send it to the printer directly from my user's browser, wich is in the client side, not needing to generate PDFs or something like this. I would like to be able to: Print user friendly paging, something like "Page 1 of 3" Print some things in the bottom of e...

Print Multipage in WPF

Hi, i have to print my form but it is big to enter in only one page so i need to print it in 2 pages ,my poor knowledge allow me to know how print one page but hot how print in multipage . Do you have any advice how i can print in multipage,all kind of help will be appreciate. Thanks. Good Work ...

IE7 CSS Float causing content to overflow when printing

When attempting to print the following web page in IE7 (or IE8 compatibility mode), some content (the bottom two questions) is truncated. You can view the issue in Print Preview. http://www.testdesigner.com/tests/print.jsp?testId=4097 Removing the float in the following css block found in printTestTwoColumns.css will fix the issue, bu...

Page preferences dialog in WPF

Howdy, I'm fiddling with adding the ability to output from a program I'm working on to both PDF and XPS. Initially both were just done via printers (pdf printer/xps writer) but I'd like to do it a little more directly. The issue I've run into is that there doesn't seem to be a page preferences dialog for WPF. Is there one and I just ca...

How to change the default paper size in windows programmatically?

How to change the default paper size in windows programmatically? ...

When using Excel's "Print Titles" how do i change the titles midway down the sheet

I have a classic ASP web app that outputs reports to Excel, but it's really just html. Some reports output with multiple groups and each group can span multiple pages (vertically). I'm aware of the "Page Titles" ability of Excel to print a specified row (or rows) on every page, however, I need the title of each group to also display in...

java printing on paper - formating output for print

Hello, I have a java desktop application with information about several entities. There is a "print" button than WHEN pressed various information should be collected and printed. The question is: How can i select WHAT will be printed ON a specific location on the paper? A more general question would be: How can i format information t...

Printing using Word Interop with Print Dialog

Hey All! I'm trying to print a word doc from my C# code. I used the 12.0.0.0 Word Interop and what i'm trying to do is to get a Print Dialogue pop up before the document prints. I'm not 100% sure of the syntax of all of this as I can't get my code to work :( Any ideas? Thanks in advance! ...

How convert PCL generated by HP LaserJet 5 into PDF in C#?

I need to retire 15 years old system and preserve all data. It can only print documents into specific printer HP LaserJet 5. I can print documents into PCL files and looking for ways to convert all this files into PDFs programmatically. Preferably in C#. Can anybody recommend good library or command line tool? Preferably free ;-) ...