print & print preview using javascript

Hello,

I have a preformatted document in word, Now i want to know if there is some way in asp.net or javascript to print that doc but before printing i want to pick the recipeint names form the web form(say text box in web form) and then a print preview for the client and then get it printed.

Its like same document with differnet recipents needs be printed.

 

Thanks 

Vinod. 

0
suri_vinod
2/3/2008 6:16:30 AM
asp.net.client-side 24353 articles. 1 followers. Follow

1 Replies
755 Views

Similar Articles

[PageSpeed] 0

This article explains the same

http://www.alistapart.com/articles/printtopreview 

 


Vikram
www.vikramlakhotia.com


Please mark the answer if it helped you
0
vik20000in
2/3/2008 7:14:58 AM
Reply:

Similar Artilces:

Print and print preview file on the website without using the File
Hi everyone, Is there any source code or help I can use to print and print preview my file on the IE and print the file using my own command instead of using the IE Print command. Please do reply me. Your help is greatly appreciated. Best regards....

Local Client-side printing using server vb.net code?
Hi,Rather than use the window.print() command which is just a form dump.  I want to use vb.net code to do this as it has all the features necessary.I came across this useful article from developers.com.  http://www.developer.com/net/net/article.php/3102381However, when I run this it throws an exception because there is no default printer attached to the server.  Of course I don't want to print server side - thats no good.  But print client side.  The users would print to whatever print queue on the network they have connected to their own pc.I thought ...

Print Preview & Selection Printing
Name: Stefan Product: Firefox Summary: Print Preview & Selection Printing Comments: Firefox needs to able to show a print preview for the printing of selected text. This is possible in Internet Explorer. In Firefox, print preview is available only for printing everything on the website or a number of pages of that site; however, no print preview is available for what a printing only of highlighted text would look like. This should be rectified in Firefox 4. I would like to be able to use print preview for highlighted text without having to use IE Tab. From URL: http://he...

Print Preview & Print does not match
We have a report which contains free text field comes from database, for Example :- print preview mode the free text appears in 8 Lines but in print mode free text appears in 7 Lines only. This is happened even if the zooming of print preview mode is 100% and it takes more lines or less lines depends on zooming percentage. What I mean is that the paragarph size of the text field is different between ( Print Preview and Preview ) but the contents is OK in both modes. We are using PowerBuilder 6.0. What can we do to solve this problem ? ...

V2 & V3 Print Preview & Printing pages does not scale correctly
Name: Terry Barlow Email: barlow524atbtinternetdotcom Product: Firefox Summary: V2 & V3 Print Preview & Printing pages does not scale correctly Comments: When trying to print browser pages using my Brother HL2030 the output consists of just a few words at start of each line of text and only a few lines too. The only way I can print a full page is to print the page in PDF and then print that using Acrobat Reader. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 From URL: http://hendrix.mozilla.org/ Not...

superreview requested: [Bug 126802] Printing while in print preview disabled on Unix : [Attachment 333675] patch to enable printing while in print preview
Leon Sha <leon.sha@sun.com> has asked Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org> for superreview: Bug 126802: Printing while in print preview disabled on Unix https://bugzilla.mozilla.org/show_bug.cgi?id=126802 Attachment 333675: patch to enable printing while in print preview https://bugzilla.mozilla.org/attachment.cgi?id=333675&action=edit ...

superreview granted: [Bug 126802] Printing while in print preview disabled on Unix : [Attachment 333675] patch to enable printing while in print preview
Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org> has granted Leon Sha <leon.sha@sun.com>'s request for superreview: Bug 126802: Printing while in print preview disabled on Unix https://bugzilla.mozilla.org/show_bug.cgi?id=126802 Attachment 333675: patch to enable printing while in print preview https://bugzilla.mozilla.org/attachment.cgi?id=333675&action=edit ...

Configuring & Printing the Client-side Printer from Server Side
Hi,  I'am unable to configure the Client-side dot-matrix printer from the server side code using ASP Dot Net. My requirement is to print 2 forms on an A4 sized paper, so I want the printout page to stop moving ahead after the 1st Form is printed.  I tried using JavaScript, it is printing fine but the page is moving over & thru JavaScript I cannot set the paper-size & Printer settings. Should I use an Applet for the same? Or is there any facility in Dot Net for the same? Thanks. There is one other way to apply media-specific styles: the @media rule. Here's an example: &...

Printing DIV Contents using Print Preview
How to Display only DIV Contents using Internet Explorer Print Preview Window. Am using this code from a POSTfunction showPrintPreview() { var objPrintPreview = '<object id="printPrev" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>'; document.body.insertAdjacentHTML('beforeEnd', objPrintPreview); printPrev.ExecWB(7, 2); printPrev.outerHTML ="";   Using this Displays whole Page contents in Print Preview Window. You may like to check out this discussion thread htt...

Missing data in prints & print previews
Name: Geoff Steel Email: webmasteratbaberghdotgovdotuk Product: Firefox Summary: Missing data in prints & print previews Comments: It has been reported to me that Firefox (2.0.0.6) is losing data at page throws in print previews and prints. e.g. from http://planning.babergh.gov.uk/dcdatav2/acolnetcgi.gov in Weekly List Search select Sudbury and 07/08/2007 and Search; there are 6 results. Do a File \ Print Preview - note that B/07/01225 is truncated after "Location: 35 Market Hill, Sudbury, CO10 2EN" and the next page shows a new result. This behaviour appe...

Firemonkey XE4 Printing & Print Preview
Does XE4 support printing and print preview on Mac OSX? -- Michael Riley GySgt USMC Retired http://capecodgunny.blogspot.com/ > {quote:title=Michael Riley wrote:}{quote} > Does XE4 support printing and print preview on Mac OSX? > > -- > Michael Riley > GySgt USMC Retired > http://capecodgunny.blogspot.com/ yes, pretty much, although for now it has reverted to needing a scaling factor added to the font size and some of the other functions don't work, but we do print on OSX using FMX. I'd be glad to help if you run into trouble. S ...

Print from Print Preview
Name: Mairi Product: Firefox Summary: Print from Print Preview Comments: It would be very convenient if there was a print button in the print preview mode. Browser Details: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020410 Fedora/3.0.6-1.fc9 Firefox/3.0.6 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

Printing
Hi all. Can anyone help with the following. (PB 9.0) I have WYSIWYG forms with multi-line edit controls (Arial 10). Once the user has entered text in the mle, when they preview it it look as was entered. On printing, sometimes a word at the end will wrap onto the next line spoiling the WYSIWYG effect. Is this purely a printer driver problem, and is there a work around. Thanks. Mark. ...

print preview and print
Name: gladys reichlen Email: gladysdotreichlenatharrisdotcom Product: Firefox Summary: print preview and print Comments: print preview and print of website current screen just locks up in processing. when I cancel print, it closes firefox altogether. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 From URL: http://hendrix.mozilla.org/ ...

Web resources about - print & print preview using javascript - asp.net.client-side

JavaScript Kit- Your comprehensive JavaScript, DHTML, CSS, and Ajax stop
Your comprehensive JavaScript, DHTML, CSS, and Ajax stop

Let's Code: Test-Driven Javascript by James Shore — Kickstarter
James Shore is raising funds for Let's Code: Test-Driven Javascript on Kickstarter! A screencast series focusing on rigorous, professional Javascript ...

Eloquent JavaScript: A Modern Introduction to Programming
... and pragmatics. I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript! ...

JavaScript - Wikipedia, the free encyclopedia
programming styles. JavaScript was formalized in the ECMAScript language standard and is primarily used in the form of client-side JavaScript ...

Open Directory - Computers: Programming: Languages: JavaScript: Tools: Obfuscators
... editor - report abuse/spam - help the entire directory only in Tools/Obfuscators Description Top : Computers : Programming : Languages : JavaScript ...

Facebook Open-Sources JavaScript Static-Type Checker Flow
The latest software to be open-sourced by Facebook is Flow , a static-type checker for JavaScript . (more…) New Career Opportunities Daily: ...

Under the Hood: The JavaScript SDK - The use of polyfills - Facebook
Facebook Engineering hat eine Notiz mit dem Titel Under the Hood: The JavaScript SDK - The use of polyfills geschrieben. Du kannst den vollständigen ...

JavaScript
The Facebook SDK for JavaScript provides a rich set of client-side functionality for adding Social Plugins, making API calls and implementing ...

Facebook App Devs Get Javascript
It has been an oft-lamented fact of the Facebook Platform thus far in its life that, in order to use all but the most simple of Javascript functionality–the ...

Badass JavaScript (@badass_js) on Twitter
WebGLWorker is an open source library that allows using WebGL from Web Workers. Great work as always from @kripken . blog.mozilla.org/research/2014/… ...

Resources last updated: 11/22/2015 4:16:06 PM