printing

Printing Certain Pages in MS Word

Using MS Word, is there a way to simply print only those pages which contain a certain search string. For example, I have a few hundred pages of transaction summaries and there is a certain string that reoccurs through out the transaction report. I can't throw a regular expression into the pages to print dialog or something? ...

WebBrowser Control - Console Application - Events Not Firing

I have been navigating the various WebBrowser control stackoverflow questions, and I can't seem to find an answer to a problem I am having. I am trying to use the WebBrowser control to print a web page. Following MSDN's example, I have created the following console application: namespace WebPrintingMadness { using System; using ...

Can a PDF file's print dialog be opened with Javascript?

I know how to open a webpage in a new window and add javascript so the print dialog pops up. Is there a way to do a similar thing with a PDF file? ...

Crystal Reports and uploaded PDF Documents

I have a system that builds up reports on incedents. This allows the users to fill in multiple web forms and upload PDF documents, jpeg images and tiff images. I have a cystal report that prints of all the form data related to the incedent but cannot find a quick method of printing off all the data and the pdf documents with one click....

Printing a DataTable to textbox/textfile in .NET

Is there a predefined or "easy" method of writing a datatable to a text file or TextBox Control (With monospace font) such as DataTable.Print(): Column1| Column2| --------|--------| v1| v2| v3| v4| v5| v6| Edit Here's an initial version (vb.net) - in case anyone is interested or wants to build their...

How do you recognize when the user has changed the Windows Default Printer in VB6

I have a VB6 application that needs to recognise when the user changes the Windows Default printer via the Control Panel. Now when the application starts up, "Printer.DeviceName" contains that default printer name...easy. If you then change the Windows Default Printer via the control panel, your VB app won't recognize the new default u...

How can I print polymorphic values in Standard ML?

Is there a way to print polymorphic values in Standard ML (SML/NJ specifically)? I have a polymorphic function that is not doing what I want and due to the abysmal state that is debugging in SML (see Any real world experience debugging a production functional program?), I would like to see what it is doing with some good-ol' print's. A...

API call to render the output of an App (win) to a image

Hello guys, I need a to build a application (.NET) that given the pid of another app continually makes printscreens of that app to make a video... I'm using the API call: new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb); the problem I've is speed.... Any ideas ? ...

How to traverse a trie longitudinally?

Hello, i have a Trie and several functions modifiing it. typedef struct node *pnode; typedef struct node { int element; pnode next;//same level, other element pnode subtree;//next level } node; Now, in order to debug and/or test my functions, I need to print out the tries. I tried it recursively, but I cannot get the fi...

how to fit wide table on an a4 size paper?

hi i want to print a table of report on an a4 size paper , but only a part of table is getting printed , few columns are being left out ... can anybody please tell me what might be the problem, i tried to srink to fit but , it becomes too small to read ... ...

Printing receipt ASP.NET

Hi, I'm currently making a project where I need to print out a receipt on a receipt printer. At the moment i'm using the CSS mechanism media=screen , media=print to indicate what to print. Problem is of course the header and footer which can't be removed, as it is client browser specific. So i'm wondering if anyone has another suggest...

Why can't I change the display status using CSS?

I am trying to display a banner on a report while printing but it doesn't print. What I did was I set the display status to display:none in my regular CSS #transfer_head2 { display:none; } and I changed the display status to display:block in my print CSS #transfer_head2 { display:block; } but this is not working. Why? Can anybody h...

What is the best way to toggle python prints?

I'm running Python 2.4 in a game engine and I want to be able to turn off all prints if needed. For example I'd like to have the prints on for a debug build, and then turned off for a release build. It's also imperative that it's as transparent as possible. My solution to this in the C code of the engine is having the printf function in...

How to embed multi-page PDFs in Excel

I am trying to embed a multi-page PDF document into an Excel file such that when the Excel file is printed, all of the PDF's pages are printed also. I have googled around quite a bit and haven't found a way to do it. It seems that OLE embedded multi-page files are limited to displaying their first page. Can anybody suggest a way to do...

How do I programatically change printer settings with the WebBrowser control?

I finally figured out how to print transformed XML without prompting the user or showing an IE window, but now I need to specify a number of copies and possibly other printer settings. Is there a way to programatically change printer settings on a WebBrowser control? The code in question: private static void PrintReport(string report...

Batch print Word documents .Net?

Is it possible to print a batch of Word documents all at one time via .Net (c# or VB, 2.0, 3.0, 3.5... language and framework above 2 doesn't matter to me)? For example, I've got a local directory that contains several word documents... I can iterate through the list and call the PrintOut() method, but I believe that sends several print...

Print bit representation of a string

How to print the bit representation of a string std::string = "\x80"; void print (std::string &s) { //How to implement this } ...

How can I provide the same form 1) Blank, and 2) Filled in, via XSLT?

I have 20 forms which I am printing using XML and XSLT. Now I need a functionality where I can print these forms as blank. For example I have a "Name" field in my XML and a corresponding <span>Name:</span> <strong class="data"> <xsl:value-of disable-output-escaping="yes" select="Name" /> </strong> I need 2 functionalities: I wa...

how can i change font size in thermal printing (lipi lwt 150) using C#.net

I am using C#.net and GDI printing code to print to thermal printer LIPI LWT 150. But, I can't change my font size. I'm using Arial 9pt and 5pt, but it comes out in default size. Does anybody have any idea about this? I am using C# code like this: public frmSale() { InitializeComponent(); printingDoc.Pr...

Printing a report from a windows service

We need to print a report periodically from a windows service, we use .NET 2.0. We have modules that produce this report as a PDF or as an HTML file, PDF would be better because we have better control over the look of the report. We also have the username, password and the name of the printer selected for the task. I searched and resear...