473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Issue with print button in IE

Hi all,

I'm facing issue with the print button present in the toolbar of IE.

Whenever i click the print button, the page's prerender event is called. This happens only in IE. When i try to print with Firefox, this does not happen.

I have an iframe in first.aspx page. In the prerender event handler, I'm giving the iframe source as follows.

Expand|Select|Wrap|Line Numbers
  1. iframe1.Attributes["src"] = "second.aspx"
  2.  
In second.aspx, i read an image file, convert into byte array and display it in the first.aspx iframe as follows.
Here, img is a byte array.

Expand|Select|Wrap|Line Numbers
  1. try
  2. {
  3. response.contenttype("image/jpeg");
  4. response.binarywrite(img);
  5. response.end();
  6. }
  7. catch(Exception ex)
  8. {
  9. response.write("Error loading the image");
  10. }
  11.  
The image is displaying properly in both firefox and IE. But when i try to print it, i'm getting error in IE.
Also, when i ran in debug mode, i found that on click of print button, the first.aspx's prerender event is getting called (only in IE).

Can you kindly help me out with this. Its pretty urgent.

Thanks in advance!

Regards,
Anoop Athreyasa
Aug 30 '10 #1
0 771

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Dennis Allen | last post by:
Hi. On one particular web page I want to offer the user a print button. Question. How do I create one? Something compatible with most browsers would be nice. Appreciate any advice...Dennis
3
by: Mariame | last post by:
Hi All, How to add a print button to a crystal report??? Thx & Regards
0
by: prophet | last post by:
how do I create a print button that is on my index page that prints my target page (and only the target page) I tried <INPUT onclick=window.print(); type=button value="Print This Page"...
1
by: hexagram | last post by:
hi can anybody here help me on my problem the condition is if the form is blank or incomplete or not save the print button is disable, otherwise if the form is fill up complete and saved the...
0
by: esateesh | last post by:
HI i have a .aspx page with a print button and am calling java script function i.e onclick="window.print()" when a print is given am gettng print button in the pirnted page, but it should not be...
2
by: fperri | last post by:
I have a custom toolbar with a print button on it that pops up when the user is print previewing a report. I used the print command under the file list on the custom menu window when building it. For...
1
by: adultswim | last post by:
Hello everyone... I have a problem that I was hoping I might be able to get some suggestions on the best way to resolve. Do to the environment I work in I am not able to get outside access to the...
4
by: pacarv | last post by:
I've created a database in Access 2003 with multiple reports that are accessable from the switchboard. The switchboard also has a print button. The user selects the report from the menu which then...
0
by: mohanty2050 | last post by:
I am using Crystal Report 9 and VB6.0. I can display the report through Crystal report viewer properly. But the print button in the Crystal report viewer does not work. My printer is in network. If I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.