1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Sending Fax through ASP code

Discussion in 'C#' started by smilesmita, Jul 28, 2006.

  1. #1
    Hi friends,
    I am trying to send a fax through my ASP code.I searched a lot on google ,tried a lot of stuff..but all in vain.In my company i do have fax server The code which i have right now is giving me error on MyDocuments.Send.
    But any new ideas are welcome.
    We do not want to try sending fax through internet because it is costly and send a lot of fax in a day which makes it more costly.here is the code:
    <%
    Dim MyFax, MyDocuments, MyFile
    Set MyFax = Server.CreateObject("FaxServer.Faxserver.1")
    MyFax.Connect("Cheryl")

    MyFile = Server.MapPath("i.txt")
    Set MyDocuments = MyFax.CreateDocument(MyFile)
    MyDocuments.FaxNumber = "13999999"
    MyDocuments.Send
    MyFax.DisConnect
    Set MyDocuments = Nothing
    Set MyFax = Nothing
    Response.write "Fax is successfully sent!"

    %>
     
    smilesmita, Jul 28, 2006 IP
  2. shaileshk

    shaileshk Well-Known Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    could you post your error

    may be you not set required parameter
     
    shaileshk, Jul 31, 2006 IP
  3. smilesmita

    smilesmita Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this is the error i get:
    Error Type:
    (0x80070002)
    at the line
    FaxDoc.Send.


    Please let me know if you could help me out in this.
     
    smilesmita, Jul 31, 2006 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    I would consult the vendor of the object, ask them what this error indicates
     
    frankcow, Aug 1, 2006 IP
  5. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #5
    well, as I see from the error its stuck on the SEND property.

    Do you use any COM objects, besides before you provided a code that said
    MyDocuments.Send
    but later on you indicate the error when
    FaxDoc.Send

    Couple you please be more specific what you use, post the code and say THIS LINE HAS THE ERROR WHICH SAYS "YOU ARE NOT AN ASP DEVELOPER"
    Got me, then we'll try to help you prove the software that you really are a DEVELOPER
     
    ludwig, Aug 1, 2006 IP
  6. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #6
    thanks for the nonsensical reply ludwig
     
    frankcow, Aug 1, 2006 IP
  7. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #7
    why is it "nonsensical", he says on thing in the begining and then another later. don't you think he needs to clarify everything
     
    ludwig, Aug 1, 2006 IP
  8. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #8
    your grammar is awful, even if you were simply trying to point out that he made a mistake
     
    frankcow, Aug 1, 2006 IP
  9. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #9
    I know, you don't have to remind me about that, you could try talking to other's whose grammer is worse.

    the thread here is not about my grammer, nor your's.

    so please make sure you know what is the DP for before you start posting nonsensical information here.

    If you want to tell anything to me personally, you could try sending a PM, that's why it exists... Just in case you don't know it yet
     
    ludwig, Aug 1, 2006 IP