Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to put IP address to form

How to put IP address to form

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorialquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    slSoftware
    wrote on last edited by
    #1

    i'm doing small web application C#,and there have some reports for each an application.i need to put computer ip address for corner of each report,when they took print out it should print that puticular computer IP address as well,how can i do that. pls help me to do this. thank you -- modified at 0:14 Tuesday 16th January, 2007

    V T 2 Replies Last reply
    0
    • S slSoftware

      i'm doing small web application C#,and there have some reports for each an application.i need to put computer ip address for corner of each report,when they took print out it should print that puticular computer IP address as well,how can i do that. pls help me to do this. thank you -- modified at 0:14 Tuesday 16th January, 2007

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      The IP Address of the client machine or the Proxy is available in serverVariables collection.

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      S 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        The IP Address of the client machine or the Proxy is available in serverVariables collection.

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        S Offline
        S Offline
        slSoftware
        wrote on last edited by
        #3

        i need IP Address of client machine. thank you

        1 Reply Last reply
        0
        • S slSoftware

          i'm doing small web application C#,and there have some reports for each an application.i need to put computer ip address for corner of each report,when they took print out it should print that puticular computer IP address as well,how can i do that. pls help me to do this. thank you -- modified at 0:14 Tuesday 16th January, 2007

          T Offline
          T Offline
          trish_
          wrote on last edited by
          #4

          Hi, try this Response.Write(Request.UserHostAddress()) but this will applicable for clients browsers...you may get IP on your machine as 127.0.0.1 which is default IP in IIS.. trish

          S 2 Replies Last reply
          0
          • T trish_

            Hi, try this Response.Write(Request.UserHostAddress()) but this will applicable for clients browsers...you may get IP on your machine as 127.0.0.1 which is default IP in IIS.. trish

            S Offline
            S Offline
            slSoftware
            wrote on last edited by
            #5

            Thank you for ur helping,but i need other's client IP Address,if they put print out it should print document and IP Address as well.

            T 1 Reply Last reply
            0
            • S slSoftware

              Thank you for ur helping,but i need other's client IP Address,if they put print out it should print document and IP Address as well.

              T Offline
              T Offline
              trish_
              wrote on last edited by
              #6

              Hi It will definately return Client's IP address.. But maybe it will return wrong IP where this site will hosted.. Just try access to access your page from some others browser..it will return correct static IP address of the machine!!! try this ,if still confused then let me know.. trish

              S 1 Reply Last reply
              0
              • T trish_

                Hi It will definately return Client's IP address.. But maybe it will return wrong IP where this site will hosted.. Just try access to access your page from some others browser..it will return correct static IP address of the machine!!! try this ,if still confused then let me know.. trish

                S Offline
                S Offline
                slSoftware
                wrote on last edited by
                #7

                Hi Yes it working when i'm trying in different solution,but there is small problem actuall i have Reports in one solution and my UI in another solution,so i put the parameter field into my report and i call that parameter from my ui as follows, In my UI there is method call GetReport() i have created object of my report document and i set it to it like this, ReportDoc.MyreportName objectOfReport=new ReportDoc.MyreportName(); objectOfReport.setParameterValue("MyParameterName",Request.UserHostAddress); but there occur error like this: System.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) what should i do? thank you

                1 Reply Last reply
                0
                • T trish_

                  Hi, try this Response.Write(Request.UserHostAddress()) but this will applicable for clients browsers...you may get IP on your machine as 127.0.0.1 which is default IP in IIS.. trish

                  S Offline
                  S Offline
                  slSoftware
                  wrote on last edited by
                  #8

                  Hi Pls help me to do this,this is urgent thank you

                  T 1 Reply Last reply
                  0
                  • S slSoftware

                    Hi Pls help me to do this,this is urgent thank you

                    T Offline
                    T Offline
                    trish_
                    wrote on last edited by
                    #9

                    Hi, I think you are using Crystal report for generating report.. Unfortunately I don't have crystal report installed on my PC.. But I search similar problem for you on net..try this link you may got the solution http://forums.asp.net/thread/1003903.aspx Trish

                    S 1 Reply Last reply
                    0
                    • T trish_

                      Hi, I think you are using Crystal report for generating report.. Unfortunately I don't have crystal report installed on my PC.. But I search similar problem for you on net..try this link you may got the solution http://forums.asp.net/thread/1003903.aspx Trish

                      S Offline
                      S Offline
                      slSoftware
                      wrote on last edited by
                      #10

                      Hi Im appreciate your helping,ok trish i solved that problem i did in diferrnt way.Thank you very much.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups