codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Print and print preview file on the website without using the File - Print on the IE  appleLover at 06:13 on Saturday, February 19, 2005
 

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

  Re: Print and print preview file on the website without using the File - Print on the IE  tgreer at 14:48 on Sunday, February 20, 2005
 

I don't know what you mean by "your own command". If you mean, can you print programmatically, then the answer is "yes".

Clien-side, use the JavaScript window.print() method, which will bring up the print dialog box.

If you want to print something server-side, you can use the System.Drawing.Printing class.



  Re: Print and print preview file on the website without using the File - Print on the IE  appleLover at 11:22 on Thursday, March 10, 2005
 

I used System.Drawing.Printing class. I get the source code from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingprintingprintdocumentclasstopic.asp and printed .doc file but it gave me funny character. Could you tell me the reason why? Is it because I should not use streamReader? Is there any code that I have to change in order for me to print .doc file from the asp.net web page?

  Re: Print and print preview file on the website without using the File - Print on the IE  Hel at 16:56 on Wednesday, March 28, 2007
 

Hello everybody!

I work in a software company and we receive from our customers a lot of claims on Internet Explorer Print function.
Finally we decided to create a plug-in for Internet Explorer, which helps to manage webpage printing (www.printwebpage.net).
Please help me with your ideas to create a product which will be really useful!

My questions are:
What are the main problems you face with in webprinting?
Which features do you need to be totally satisfied with printing from Internet Explorer?

Thanks in advance for your help!
Hel.


  Re: Print and print preview file on the website without using the File - Print on the IE  kamat-anita at 20:29 on Thursday, June 28, 2007
 

I am having the same problem. any solutions

  Re: Print and print preview file on the website without using the File - Print on the IE  TAS at 07:38 on Wednesday, March 25, 2009
 

Hope this helps to everyone, This coding is used to print a particular content of page. Before you place the control which wants to print in <div> tag. Write a javascript function and it will be called by button click event.

Javascript Function:

function CallPrint(strid)
{
var headstr = "<html><head><title>Print Page</title></head><body>";
var footstr = "</body></html>"
var WinPrint = window.open('','','left=150,top=150,width=700,height=500,menubar=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(headstr + strid.innerHTML + footstr);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();

}
</script>

Calling javascript function:

<asp:Button ID="btnPrint" runat="server" Text="Print" BackColor="Control" OnClientClick="javascript:return CallPrint(divPrint);" />

<Div> Tag Control Lines:

<div id="divPrint">
<asp:Table runat="server" ID="tblRpt" BackColor="LavenderBlush" BorderStyle="Groove" ForeColor="Purple" GridLines="Both" Width="781px" Visible="False">
...........
</asp:Table>
</div>

  Re: Print and print preview file on the website without using the File - Print on the IE  jessonerik at 05:36 on Wednesday, October 14, 2009
 

i am a final year student in university and currently my topic for thesis
is speech recognition and speech synthesis bankruptcy repository system between humen
and computer. i have get the common/basic knowledge from java.sun.com and
i also try to compile from the example "Hello World" but it came out with
error said that i have not javax.speech package in my computer. my jdk is
jdk1.3.1 . for now. i am not sure how or where can i get the javax.speech
package. is it free ? i am planning to using java programming cause of its
indepandent platform. but i study the explaination form sum homepage said
they don't have support the speech and require the third party to provide
it . must i use the IBM ViaVoice in order to create my own speech program
? cause it was so expansive for me to buy it. i have surf a ot of website
that sun java recommand me to download the third party software like IBM home insurance,
crowd garden, and microsoft SDK. do i really need it to use the third party
that only can run in certain platform. if i must use the third party, then
i better used the other programming language since it will limit the playform,
correct me if i am missed something.

can somebody help me ? i really need the correct explaination for what software
or third party software i need to install in order i can use java and have
javax.speech package for doing my thesis life insurance.

have someone doing or study the java speech or other language's speech technology
here ? i really hope i can get help here.

can you recommand me other language if java is more difficult in this situation
then other langauge.sorry for this question in this forum.


Your question is unclear. Obviously you have already been to this page:
http://java.sun.com/products/java-me...sapifaq.html#i
mplementation but you don't understand what is written there. Where can you
get that package? The page clearly lists several places where you can get
it. Is it free? Some of the entries on that page use the word "free". Do
they require certain platforms? They all have links, follow them and you
might find out.

Or perhaps you should just print the page and have somebody translate it
into your language for you dental insurance.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Problem to declare global variable in Object oriented perl
•  Re: dereferenceing a string to a constant name
•  Re: Submit multiple forms with one button
•  Re: Passing Password using $ssh->cmd
•  Re: ADODB.Recordset error (0x800A0CB3)
•  Re: Open a Modal Pop Up From a LinkButton In a GridView
•  Re: Need Javascript Multiple sidebar menu with sliding effects
•  Re: ASP.NET /Excel opening in frame Issue
•  Re: `section` is an unexpected token. Expecting white space. Line 1, position 137.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010