I'm using WPF and need to let users set some print related options like printer and printer properties (e.g. papertray, landscape/portrait, duplex, etc). I'm aware of the PrintDialog class to get a PrintQueue and PrintTicket object. However I need to create I custom solution and can not show the PrintDialog.
I manage to get the availabl...
I have a simple, table based HTML page with a very simple style sheet. I can open the page in IE7 and FireFox 3 and it looks exactly the same. I can print the page from both browsers and it looks exactly the same. We'll call the page "ProblemPage.htm"
Now, inside an ASP.Net page, I create an IFrame and load that HTML into the IFrame lik...
I am printing a Swing component that contains text. The Swing component renders the text just fine on the screen, but, when I print it (to a .tif file), the characters are all smashed together. Why is this?
Run this code to see what I mean:
import javax.swing.*;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.Sim...
i have a statement
int A = 10,B=6,C=5;
and i want to write a print function such that i pass the int variable to it and
it prints me the variable name and the value.
eg if i call print(A)
it must return "A: 10", and print (B) then it must return "B:6"
in short i want to know how can i access the name of the variable and print it to ...
I'm trying to print out a DataGridView using a PrintDocument. In my PrintPage event handler, I use the e.Graphics object to draw some grid lines, then print some text in the "cells" created -- as an aside, this really should have been done by Microsoft, but I digress.
Anyway, this works just fine. The PrintDocument is tied to a PrintP...
I have an application that I'm working on and I allow the user to select a printer to use as their printer while printing forms from the application. I'm using .NET 2.0
In the settings screen, I call
System.Drawing.Printing.PrinterSettings.InstalledPrinters
to get the list of available printers.
On a client's machine, the property...
Is there a way to disable printing in Internet Explorer without writing a shell around the browser API? A GPO would be the best method, but I'm certainly open for anything.
...
Hello,
I'm using digital certificates to sign a transaction results, also, I need to print out a slip with information and digital signature on it.
I was wondering if there is any shorter representation of X.509 digital signature specifically designed for printed media? Maybe some kind of hash or something similar...
Thank you very mu...
I'm trying to preview and print multiple page TIFF files from a C# 2005 Windows application. Printing works fine but when I send my PrintDocument to a PrintPreviewDialog I get two images of the first page rather than an ameage of the first and second page. I also have the same problem when I use PrintPreviewControl.
Below is code for ...
Hello. I'm developing an Asp.Net 3.5 application and I need to print some application generated reports.
I was previously using SSRS but I had lots of problems with it design features. Because of that, we are now looking for Crystal Reports as an alternative.
When we started to use Crystal, we faced a new problem. When one clicks on th...
For Windows XP / Windows Server 2003
I'm trying to print an EMF(or WMF) file format to the virtual printer "Microsoft XPS Document Writer" using Windows Picture and Fax Viewer (shimgvw.dll) from the command line. I want the resulting XPS to be in vector format, like the WMF/EMF is.
It works with all image formats except WMF and EMF...
I have a JPanel with two labels with pictures. I need to print these content of the JPanel. Please help me out. How can I print only this JPanel's contents, as I also have different components on my JFrame but I just need to print this JPanel.
Thanks.
...
Hi All
I am using the following code to print a word document from a C# app.
ProcessStartInfo info = new ProcessStartInfo(myDocumentsPath);
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
This works fine Wor...
After generating a report, change the settings in the JasperViewer window by selecting the "Fit Page" or the "Fit Width"buttons at the top. Select the Printer Icon in the JasperViewer and print.
The report does not fit to page while getting printed.
...
Is there a way to globally suppress the unicode string indicator in python? I'm working exclusively with unicode in an application, and do a lot of interactive stuff. Having the u'prefix' show up in all of my debug output is unnecessary and obnoxious. Can it be turned off?
...
I have some simple CSS:
#someElement {
background-color:black;
color:white;
}
It looks ok in the browser, but when I go to print it in Firefox it comes out as black text on a white background. I imagine this is some sort of ink-saving feature, but is there any way around it?
...
Hi all,
I have particular division in my web page. i want to print that div only when click "print" in my web page. i have some javascript code. But that is not well formatted.
Is there any javascript to print particular division from my web page?
Thanks in advance
Gnaniyar Zubair
...
Firebug is an excellent tool to to show a screen media CSS for some HTML element, but is there a way to look at the print media CSS too? Or is there any other tool to see the print media CSS?
...
Has anyone come across the problem where Internet Explorer won't print a page properly unless I go through print preview? If I just click print directly, or the print button on the page, it prints two pages, the first with just the heading on it, and the second one blank.
If I go through Print Preview, it shows the correct format of the...
I am working on a swings application I have a Jpanel, I am facing serious problem with printing this JPanel data with "card printer". This is working fine when i using paper color printer but when i am using card printer its printing nothing. I have tested the printer using some Images and it is printing fine when i print any Image direc...