I have an ASP.NET website from which the users themselves will generate custom reports and (possibly) print them. My question is what approach would you recommend (and why):
Generate the report using reporting software like Microsoft Report Viewer or Crystal Reports.
Use simple ASP.NET pages and format the page for printing using CSS.
...
In Visual Studio 2008, when I print code with "hide collapsed region", the print result would include the region header name.
For example, if the code looks like this:
using ...
namespace Foo
{
#region MyRegion1...
#region MyRegion2...
public void SomeAction{}
}
In Visual Studio 2008 print, it looks like:
using ...
names...
Okay, before you spam me with StringFormat.Alignment = StringAlignment.Center ... hear my whole issue:
When I draw text with the following code, the string is centered in the PrintPreview, but NOT CENTERED on the actual paper when it prints. The whole page is off to the right just a little, thus some stuff shows as printing on the print...
The following code outputs 43211, why?
echo print('3').'2'.print('4');
...
Hi all, I am trying to work through this question and I have had little success tonight. I think I can make the code below work if I only knew what event was fired when the window.print() function is called.
var browser_name = navigator.appName;
if(browser_name == 'Microsoft Internet Explorer'){
window.attachEvent("print()",on_p...
Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?
Essentially, I want to be able to show the HTML page in the browser, and outline the content in the dimensions of an A4 size page.
For the sake of simplicity, I'm assuming that the HTML page will only contain text (no images etc.) and there will b...
Hi,
I have a simple, general question regarding a real small issue that bothers me:
I'm printing a list of elements on the fly, so I don't have prior knowledge about the number of printed elements. I want a simple format where the elements are separated by a comma (elem1, elem2...) or something similar. Now, if I use a simple loop like:
...
I have a page from which the user will be able to print. However, the page which will get printed is not the one the user is viewing, but rather a new one I'd like to generate on the background and (possibly) only show the print dialog for it.
Just to make things clear:
User is on "View.aspx" and clicks my Print button (not the browse...
I want to be able to print out all of the changes to the code since a certain date. Without manually copy and pasting the information from all the commit logs, is there an easier way to get all this information into a central location?
...
We've got a complex Winforms app with each form potentially containing multiple sub forms and have a requirement to be able to print the data contained in these forms.
Currently we are using the PrintDocument control. For each form (or form element) that we are looking to print, we are calling the Control.DrawToBitmap() method, then dra...
Hi Guys
I'm currently trying to set up a kiosk environment in our reception area and one of the requirements is that when a user tries to print from any application, they receive a confirmation dialog box which lets them know what the cost to print will be along with the option to continue or cancel the job.
It would be nice if there w...
I need to know how to setup a class to print from java using the most recent Java Print API. Everything I find is either obscure or uses outdated APIs.
...
IE8 on my system generally prints a page as expected.
But for one particular page on the application i am developing, when i choose Print or Print Preview, IE8 hangs indefinitely (This doesn't happen on Firefox).
What peculiarity of a particular web page could cause such an issue in IE8?
...
Hello,
I have followed instructions on the msdn to change at runtime a printer paper size configuration in my application. I have replaced the dmOrientation option by the dmPaperSize to meet my need.
All seems to execute fine (no error), but my new paper size is not taken into account until I manually validate the paper size from the p...
Hello.
I have looked for answers to this on here, but not really found a solution.
I basically have print quality images (300dpi) that are taken from PDFs. In this particular project we cannot just resort to PDFs, the button clicked must trigger the print command in the browser so 1 or 2 large print quality JPGs can be printed, one per...
Have done some research into this topic, but found no relevant answers. What I need is to print a number of PDF files on one of three forms, which are loaded into different trays of a particular printer. I need to specify which printer to use and it's not the default printer. Additionally, I need to specify which tray to use based upon...
What is a common printer interface today? I've read most of them support PostScript and/or PCL. How should I use PS/PCL from an app code (say, under Win32)?
...
I have a grayscale pdf with a few images and Text to print inside of Java. The usual approach via rendering to a graphics object and sending to a printer per java.awt.print or org.eclipse.swt.print results either in a blurred output or takes several minutes to print (The rendering process is fast though).
I have already tried many openso...
I'm creating a simple WPF print dialog box to setup a label printer. I want it to be very simple and so I've choosen not to use the standard WPF printdialog.
All is going well accept for one thing, paper sizes.
Having selected a printer from one combobox, a second combobox is populated with the paper sizes available from that device. ...
I have a program that generates a PDF as output. If I send this file to a printer using the Adobe viewer, it prints exactly as wanted. In particular, the application is printing labels and there's a requirement that every last pixel on the page is used, i.e. no margins whatsoever.
I'd like to try and automate this process. GhostScript s...