Hi doc.print() is not working in iis 7 and windows 7 when my site hosted..

PrintVisitorEntry() {
PrintDocument doc = new PrintDocument();
doc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(Visitor_Print);
doc.Print();
void Visitor_Print(object sender, System.Drawing.Printing.PrintPageEventArgs e)
DataTable dt = new DataTable();
PrintVisitorEntry_Graphics(dt, e, 1);
PrintVisitorEntry_Graphics(dt, e, 1)
Point loc = new Point(100, 100);
e.Graphics.DrawImage(img, 0, 90, 80, 80);
int startX = 10;
int startY = 10;
int offset = 5;
graphic.DrawString("---------------------------------------------------------------------", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("LOT MOBILES VISITOR PASS".PadLeft(38), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 40;
graphic.DrawString("---------------------------------------------------------------------", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("S.NO ".PadLeft(50) + "808808809", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 35;
graphic.DrawString("Visitor Name ".PadLeft(35) + txtVisitorName.Text.PadLeft(20), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Phone ".PadLeft(28) + txtmobilenumber.Text.PadLeft(27), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Employee Name ".PadLeft(36) + "Mr.Satyanarayana", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Dept ".PadLeft(27) + "Admin".PadLeft(25), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Allow To ".PadLeft(31) + txtAllowTo.Text.PadLeft(20), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Pass Validity ".PadLeft(36) + " ", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Check In Time ".PadLeft(36) + "2103/08/27 8.00 PM".PadLeft(23), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Visitor Belongings ".PadLeft(41) + "Mobile", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Issued By ".PadLeft(33) + "LOT Security(Mr.Said)".PadLeft(33), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("Employee Sign".PadRight(20) + "*808808809*".PadLeft(20), font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
graphic.DrawString("----------------------------------------------------------------------", font, new SolidBrush(Color.Black), startX, startY + offset);
offset = offset + 20;
protected void btnPrint_Click(object sender, EventArgs e)
PrintVisitorEntry();
using above code it is working fine in development but when i hosted the asp.net 4.0 site in iis 7 only that print is not responding
no error and no exceptions...Please Provide the suggestions.....Thank You

I'd ask in http://forums.iis.net/
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog:http://unlockpowershell.wordpress.com
My Book:Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Similar Messages

  • My hp laserjet 1020 plus printer is not working in network in window 98 Pl give me a solution

    hiiii...

    Hi Gaurav,
    The printer is not compatible with Mac as you may see below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01973413&tmp_track_link=ot_faqs/top_issues/en_u...
    You may try the following workaround and check if tha may work:
    Download and install the following package:
    http://support.apple.com/kb/dl907
    Ensure the printer is powered on and connected to your Mac.
    Go to System Preferences > Printers & Scanners.
    Click the plus sign and select the printer.
    Click the Use menu and then click on Select Software.
    Select the HP Laserjet 1022 from the list and click on Add.
    Now try printing using the added Print Queue.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Buttons created with edge animate are not working on android and windows devices

    Hello, I created a moble version of my website with edge animate (3.0).
    The menue-bars/buttons work fine with iphone and ipad, but not with android and windows devices.
    http://www.design-werk.org/buchgestaltung_kunstbuch.html
    Does anyone have an idea and can help me with that?
    Thank you guys,
    Wolfram

    Hello, I created a moble version of my website with edge animate (3.0).
    The menue-bars/buttons work fine with iphone and ipad, but not with android and windows devices.
    http://www.design-werk.org/buchgestaltung_kunstbuch.html
    Does anyone have an idea and can help me with that?
    Thank you guys,
    Wolfram

  • Some hardware not working on IQ524 and Windows 8

    I have an HP TouchSmart IQ524.  Everything worked great on Windows 7.  I upgraded to Windows 8 and the following things aren't working and I don't know how to fix them.
    1) Microphone.  Under windows 7, the device was called a microphone array.  This does not appear under the list of recording devices anymore.  Only "Microphone high definition audio" and it does not register any bars when I make sounds.
    2) volume buttons on the side of the all-in-one.  They don't do anything.  How do they get mapped?
    2.5) the home button.  There is a home button on the first of the all-in-one.  It used to go the touchsmart software from hp.  I would now like to map it to the start screen.
    3) multitouch.  I don't know if this is hardware or software issue.  But the "touch pack for windows 7" does not work.  It used to under windows 7.  Windows 8 says my compute does not support at least 2 simultaneous touch points.
    Any suggestions?

    Hello tj4242
    Since the Windows 7 driver won't install on Windows 8, try installing the following driver from the Microsoft Catalog: AnalogDevices - Audio - SoundMAX Integrated Digital HD Audio.
    Don't forgot to say thanks by giving "Kudos" to those that help solve your problems.
    When a solution is found please mark the post that solves your issue.

  • My wirless Hp printer will not work it goes off line when I push print

    I have just installed anew Hp D110 printer with wireless capabilities ,, It goes off line every time I attempt to print and error msg says it doesnt work with Firefox 3. but it worked right after I finished installing it on my computer then the next time the msg said it was off line .

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Thunderbolt display not working with bootcamp and windows 7

    I am running a late 2013 MBP Retina display with a Thuderbolt monitor. I am running windows 7 on a dual boot partition. I can not get my thunderbolt display to work while working in windows. The screen is currently black. I have attempted to follow the instructions in prior posts regarding this issue with no success. Is there a clear fix to get the monitor to work? Thank you

    it has to be plugged into the machine before you power on the machine, it is not hot swapable like on OSX
    does the screen work in OSX

  • Flash Player Does Not Work with IE8 and Windows XP

    I am using Windows XP VR 5.1 with SP3. Flash Player does not function? So videos will not play that use Flash Player. The Adobe Support Site has been 000 Help because it is a free product. Microsoft says it is an Adobe problem. Finger pointing to the nth degree. I have loaded the latest version of Javascript and Flash Palyer.. Any ideas?

    Resetting IE is a shotgun approach, but may be much easier (and faster) for a user than trying to troubleshoot and find exactly which add-on, control, setting is causing issues. For a fast approach, you can reset IE, then start re-installing the add-ons you wish to use. Here is a kb that describes the process and even provides a Fix it: http://support.microsoft.com/kb/923737
    If you’d like to troubleshoot, here are some steps that will fix most issues with Internet Explorer and Add-ons. This can be more of a scalpel approach, and could help you save your cookies, stored passwords, etc.
    1)      Update your Windows software
    a.       Follow the steps below to view updates that are available for your computer.
                                                       i.      Click to go online to the Windows Update website
    1.       Note: If Microsoft Update is not installed, you will be taken to the Windows Update website. See the note below if Microsoft Update is not installed.
                                                     ii.      Click Custom to check for available updates. In the left pane, under Select by Type, click each of the following links to view all available updates:
    1.       High Priority
    2.       Software, Optional
    3.       Hardware, Optional
                                                    iii.      Select the updates you want, click Review and install updates, and then click Install Updates.
    b.      What do I do if Microsoft Update is not installed?
                                                       i.      Follow the steps below to install Microsoft Update and check for updates.
    1.       Click to go online to the Windows Update website
    2.       Click the Go button next to the Get Microsoft Update Today and then click Start Now.
    3.       Review the license agreement, and then click Continue.
    4.       After setup is complete, click Check for Updates.
    5.       Click Custom to check for available updates. In the left pane, under Select by Type, click each of the following links to view all available updates:
    a.       High Priority
    b.      Software, Optional
    c.       Hardware, Optional
    6.       Select the updates you want, click Review and install updates, and then click Install Updates.
    2)      Turn off Internet Explorer add-ons you don't recognize
    a.       When you visit a website, an add-on might be downloaded without your knowledge, or you might be prompted to download an add-on. These add-ons might cause Internet Explorer to run slowly or become unresponsive. You should remove all Internet Explorer add-ons you don't recognize or trust.
    b.      How do I spot malicious add-ons?
                                                       i.      You can usually spot malicious add-ons under the Name column in the Manage Add-ons dialog box. Malicious add-ons might have:
    1.       Blank names.
    2.       Names that include random characters or have a sequence of numbers and letters (for example, fhriduvh.dll or f6rid8vh.exeas as opposed to Windows Messenger).
    3.       A publisher name you might not recognize.
    c.       How do I disable an add-on?
                                                       i.      Open Internet Explorer.
                                                     ii.      Depending on your version of Internet Explorer, do one of the following:
    1.       In Internet Explorer 6, click the Tools menu, and then click Manage Add-ons.
    2.       In Internet Explorer 7, click the Tools menu, point to Manage Add-ons, and then click Enable or Disable Add-ons.
    3.       In Internet Explorer 8, click the Tools menu, click Manage Add-ons, and then click Toolbars and Extension (if necessary). Also note the drop down list labeled “Show:” You are interested in Add-ons and Downloaded
    4.       Follow these steps to determine the version of Internet Explorer you're using:
    a.       Open Internet Explorer.
    b.      Press ALT+H, and then click About Internet Explorer.
    c.       How can I find which version of Internet Explorer I'm using if it won't launch?
                                                                                                                                i.      If you're unable to launch Internet Explorer you can use the following steps to determine the version you're using:
    1.       Click Start, click Run, type %ProgramFiles%\Internet Explorer, and then click OK.
    2.       Right-click iexplore, click Properties, and then click Version.
    3.       Under Item name, click File Version. The version number appears under Value to the right of File Version.
    a.       Note:If the file version number begins with 6, you have Internet Explorer 6. If the file version number begins with 7, you have Internet Explorer 7. If the file version number begins with 8, you have Internet Explorer 8.
    d.      If you aren't using the latest version of Internet Explorer, consider updating.
                                                                                                                                i.      How do I update to the latest version of Internet Explorer?
    1.       Click to download and install the latest version of Internet Explorer        
                                                                                                                              ii.      How can I update Internet Explorer without launching my web browser?
    1.       Click to go online to the Windows Update website.
    2.       Click Custom to check for available updates.
    3.       In the left pane, under Select by Type, click Software, Optional.
    4.       Select the Internet Explorer update, and then click Review and install updates.
                                                    iii.      Click the name of the add-on.
    1.       Click Disable. You might have to restart Internet Explorer for the changes to take effect.
    2.       Why do some add-ons include (Not verified) in the Publisher column?
    a.       If (Not verified) is displayed in the Publisher column in the Manage Add-ons dialog box, the add-on itself is not digitally signed even though the program that installed it might be. A digital signature verifies that a file comes from the person or publisher it claims to be from, and that no one has tampered with it since it was digitally signed.
    3.       How do I disable an add-on if I can't access Internet Explorer?
    a.       Click Start, and then click Control Panel.
    b.      Double-click Internet Options.
    c.       Click the Programs tab, and then click Manage Add-ons.
    d.      Click the name of the add-on you want to disable, and then select Disable.
    e.      When the Add-on Status dialog box appears, click OK to close it.
    3)      Perform a free Full Service Scan using Windows Live OneCare safety scanner (not necessary if you don’t suspect viruses and are confident in the protection you have on your machine).
    a.       Go to the following website, and then click Full Service Scan: Windows Live OneCare safety scanner
                                                       i.      http://go.microsoft.com/fwlink/?linkid=56726
    If you are still experiencing issues, perform these steps. If the issue subsides, you may discontinue the remainder of the steps
    1)      Disable all add-ons (one at a time) until you can no longer reproduce the problem
    a.       Close all Internet Explorer windows.
    b.      Click Start, and then click Control Panel.
    c.       Click Network and Internet Connections, and then click Internet Options.
    d.      Click the Programs tab, and then click Manage Add-ons.
    e.      Click the name of the add-on you want to turn off, and then, under Settings, click Disable.
    f.        Click OK.
    g.       Restart Internet Explorer. Continue using Internet Explorer the same way you did when you received a crash report. If Internet Explorer continues to crash after disabling this add-on, continue with the next step.
    h.      Repeat steps b through g for each add-on listed. When you can no longer reproduce the problem, the most recently disabled add-on is the cause of the problem. Once you discover the add-on that is causing the issues, you can uninstall it (use Manufacturer’s uninstaller if one is provided) then if you wish to continue to use the add-on, install the latest version from the manufacturer’s site.

  • ESC (Escape) key not working in Mac and Windows?

    It just won't work. Both OSes.

    A bloating battery is a bad battery dying and developing gas inside. If this happens the bloated part can be under the left upperside of the keyboard and put pressure there. It may bulge the underside of the macbook, it may bulge under the trackpad and cause irratical trackpad behaviour, etecera. Check the battery.
    If it is bad you should replace the battery.
    Keyboard: you can replace the keys (per key) I think, if it is a bad keycontact.

  • Power button not working on T540p and windows 8.1

    Hello, Just bought T540p running on win 8.1. when I press the power button (top right above keyboard) it the laptop does not go to sleep.
    I obviously went to windows settings and set it to "sleep mode" or "power down" but nothing does I cannot put the laptop to sleep except by going thru the convoluted windows 8.1 way. I'd much rather press that button. Has anyone seen this?
    Thanks!

    Hello tj4242
    Since the Windows 7 driver won't install on Windows 8, try installing the following driver from the Microsoft Catalog: AnalogDevices - Audio - SoundMAX Integrated Digital HD Audio.
    Don't forgot to say thanks by giving "Kudos" to those that help solve your problems.
    When a solution is found please mark the post that solves your issue.

  • HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro

    My HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro.
    In device manager showing that biometric reader is working properly. But actually the finger printer reader is not reading or senseing. It seems like "dummy" part. Please help me to correctly configure step by step for this issue.
    thankyou
    Hillet
    This question was solved.
    View Solution.

    Have you installed the Validity Sensor Fingerprint driver software for Windows 8.1?
    http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943811&swItemId=ob_134806_1&swEnvOid=415...
    See page 64 in the following Windows 8.1 user manual for Validity Fingerprint setup information
    http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=6943810&docId=emr_na-c04371762&docLocale...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Printer will not work after update to Mavericks

    I have a macbook pro and an HP7280 printer connected wirelessly.  After upgrading to Mavericks the printer will not work.  The first time I used it the system upgraded automatically (I forget what it said but it just went ahead and did some upgrading)  When I clicked on something to print it did recognized the printer but just scrolled and scrolled and never printed.  So I deleted the printer and reset the system and then added the printer back on - same thing.   Any ideas??

    It means there is no issue with the driver you are using and with it working correctly on Mavericks. So you have a network issue with the printer queue you are using. Normally a reset of the printing system and re-adding the printer would be enough to get things working again. But since you have done this and your issue is not resolved, there must be some other gremlins in the system.
    With the HP connected to the network, if you know its IP address you can enter this as a URL into a web browser. This should result in you connecting to the internal web page of the HP. Does this work?

  • Redirect Printer is not working in windows 2008 R2 Server( Server Running as AD and Terminal Service(both role in single server))

    Dear Team
    i need solution from Microsoft for the issue;
    My infrastructure
    - Windows Server 2008 R2 (Role - AD and Terminal Service)- Updated
    - Client Machine running with windows 7 pro (Updated)
    - Client Using RDP Client to connect Windows 2008 Terminal Session
    - All are working fine, but Redirect Printing is not working (Through Windows 7 Pro) ... (HP Laser Jet 1020 plus - attached in Client PC)
    - it is working fine from Windows XP
    - i was done All terminal setting in both end, also try RDP Login with Administrator User, but issue is not resolve;
    What Microsoft can say about the issue;
    Thanks & Regards,
    VIMAL PRAJAPATI | 09824111686

    Have you checked the Print Service log in event viewer?
    Here's How.
    I have the Microsoft XPS driver on my clients, so I use that fact to my advantage below.
    Click Start Button/Administrative Tools/Remote Desktop Services/Remote Desktop Services Manager on the RDSH server
    Click the Sessions tab.  PC’s are listed Under Client Name by their computer name.  Take Note of the corresponding
    ID.  We will use this to locate the Printer information in the Event Log.  
    In the Event Log open Application and Services Logs/Microsoft/Windows/Print Service/Admin/ and Find the Event ID 823 entry that has the corresponding ID from the sessions tab you previously noted.  
    This Event Log Entry is created at Logon and you can only get the session ID when they are logged in.
    This tells you what client printer was mapped for the client.  The name that appears is the name of the Printer that was set on the client when the printer was installed.
    See if you see any errors here.
    If you see Event Id 823 with the following message “The default printer was changed to Microsoft XPS Document Writer,winspool,Ne00:. See the event user data for context information.”  Twice in a row with no other messages in between, and the first occurs
    at the time the user logged in, then their printer was not properly redirected.
    You see the Microsoft XPS driver mapped for each session prior to Easy Print redirecting the client machine’s Default Printer.
    Since your printer is the HP 1020 I would bet the driver on the client does not work with Easyprint.  I would try the  the HP Universal Print Driver or the driver for a printer that is very close, like the HP 1018.
    Thanks,
    Jeremy

  • HT204135 I update my Mac to version 10.9.2 and now my printer does not work anymore. I did all the software updates and I do not understand why my mac does not recognize the printer anymore?

    I update my Mac to version 10.9.2 and now my printer does not work anymore. I did all the software updates and I do not understand why my mac does not recognize the printer anymore?

    Go to the website of the manufacturer of your printer and check to see if they have released an updated driver for your particular model.

  • HP Photosmart C6300 printer/scanner not working after Snow Leopard install

    HP Photosmart C6300 printer/scanner not working after Snow Leopard install
    Reinstalling etc does not work - does anyone else have the same problem or a clue as to how to fix this?

    Keith,
    I got a C6280 and the scanner does not work anymore. I am for 6 days in contact with HP. The last printer driver install form the apple web site does not open the image of HewlettPackardPrinterDrivers.dmg because of an invalid checksum. The skipping of the validation gives and error in the install.

  • HP-2840 needs new drum (Q3964A) and I am told my printer will not work when I install a new drum

    My HP2840 laser jet All-InOne has been telling me for 6 months that I need a new drum. I was waiting until I saw an issue with my print quality (which I never had a problem) and now my printer will not work unless I replace the drum.
    A friend told me that even after installing a new OEM drum, that my printer will still not work unless I call HP and pay for them to tell me how to make it work.
    Is that true?
    I need help fast cause now my wife is really angry that I "broke" the printer!
    Thanks in advance!

    mmcnel01 wrote:
    Is this an official HP forum?
    If so, is there anyone from HP - maybe a moderator or someone, that will respond to my question?
    This is a user to user forum and is not an official link to HP support.  I would suggest that you contact HP as shown here. 
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for