Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 19

Discussione: Invio FAX

  1. #1

    Invio FAX

    Salve,
    devo fare una pagina in asp che invii fax da una macchina xp.
    ho trovato esempi che funzionano (dicono..) su windows 2000.

    l'unico che ho trovato per windows xp è questo:

    Sub CheckError(strDetails)

    Dim strErr

    If Err.Number <> 0 then

    strErr = strDetails & " : Exception " & Err.Description & " err.Number=0x" & Hex(Err.Number)

    WScript.Echo strErr

    WScript.Quit(Err.Number)

    End If

    End Sub

    ON ERROR RESUME NEXT



    'For Windows XP



    Set FaxServer = WScript.CreateObject("FAXCOMEX.FaxServer")

    CheckError("WScript.CreateObject(FAXCOMEX.FaxServe r)")

    WScript.Echo "FaxServer created"


    ' Connect to the fax server. Specify computer name if the server is remote. See How to connect to a remote Fax Service for details.

    FaxServer.Connect ""

    CheckError("FaxServer.Connect")


    Set FaxDoc = WScript.CreateObject("FAXCOMEX.FaxDocument")

    CheckError("WScript.CreateObject(FAXCOMEX.FaxDocum ent)")



    ' Set file name of any printable document.

    FaxDoc.Body = "percorso file"

    CheckError("FaxDoc.Body")

    FaxDoc.DocumentName = "Fax"


    ' Add recipient's fax number. If this string contains a canonical fax number
    ' (starting with plus + followed by country code, area code in round brackets and the fax number),
    ' the Fax Service will translate that number into dialable format in accordance with your current location.
    ' Otherwise, make sure the international prefix or long distance prefix is specified when needed,
    ' as the fax number will be passed on to a fax driver (Fax Service Provider) unchanged.
    ' For example, sending a fax from San Francisco to Sydney's fax number 123456, the canonical address
    ' +61(2)123456 will be translated into dialable address 011612123456.
    ' If you are using T37FSP in conjunction with Internet Fax Service, specify absolute address
    ' 612123456 (without leading plus, to avoid translation into dialable format),
    ' as Internet Fax Service expects the number in the absolute format.


    FaxDoc.Recipients.Add dest


    ' Optionally, set the sender properties.
    ' T37FSP uses only FaxDoc.Sender.Email in Windows Server 2003 for delivery status notifications.

    'FaxDoc.Sender.Email = "bob@xyz.com"

    FaxDoc.Sender.Name = Mittente_Sogg

    FaxDoc.Sender.FaxNumber = Mittente_Num


    ' Optionally, you can control banner in outbound faxes
    FaxServer.Folders.OutgoingQueue.Branding = True ' True to set banner on, False to set banner off
    FaxServer.Folders.OutgoingQueue.Save ' Make the change persistent

    ' Optionally, use FaxServer.Folders.OutgoingQueue.Retries and FaxServer.Folders.OutgoingQueue.RetryDelay
    ' to control retries


    ' Submit the document to the connected fax server and get back the job ID.

    JobID = FaxDoc.ConnectedSubmit(FaxServer)

    CheckError("FaxDoc.ConnectedSubmit")

    WScript.Echo "FaxDoc.ConnectedSubmit success"



    la pagina non da errori, ma nei fax non mette nessun fax in coda.. quindi non spedisce nulla??

    HELP VI PREGO!!!!

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Togli questo

    ON ERROR RESUME NEXT

    e.....

    Roby

  3. #3
    Tipo di errore:
    Oggetto Server, ASP 0177 (0x800401F3)
    Stringa dell'interfaccia non valida.


  4. #4
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Originariamente inviato da millennium_y2k
    Tipo di errore:
    Oggetto Server, ASP 0177 (0x800401F3)
    Stringa dell'interfaccia non valida.

    Eh vedi...???!!!
    Il componente sul server c'è?
    Mi sa di no...

    Roby

  5. #5
    ok.... ma cosa devo fare?
    la macchina è win xp sp2 ....

    scusa, ma non sono espertissimo sui componenti...

  6. #6
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Lo devi installare dopo averlo (forse) comprato.
    In ogni caso devi essere amministratore della macchina.

    Roby

  7. #7
    forse non ci siamo capiti....

    io voglio usare il fax integrato di windows xp sp2 per mandare via fax da una pagina asp.
    il codice che ho postato,nei commenti diceva che lo faceva.

    ho trovato anche questo:

    Set FaxServer = server.CreateObject("FAXCOMEX.FaxServer.1")
    ' mi collego al server locale
    FaxServer.Connect("\\" & Nome_Server)
    Filename = session("file")
    Set FaxDoc = FaxServer.CreateDocument(Filename)
    FaxDoc.SendCoverpage = 0
    FaxDoc.RecipientName = x_Name
    FaxDoc.SenderName = Mittente_Sogg
    FaxDoc.FaxNumber = dest
    'FaxDoc.SenderFax = "0123,777777"
    FaxDoc.SenderFax = Mittente_Num
    ' invio del fax
    on error resume next
    JobID = FaxDoc.Send
    ' verifica errori
    if err.Number <> 0 then
    msg = "Impossibile inviare il fax"
    errore = 1
    else
    msg = "Fax inviato con successo"
    errore = 0
    end if
    ' disconessione dal server
    FaxServer.DisConnect()
    ' rilascio gli oggetti
    set FaxDoc = Nothing
    set FaxServer = Nothing


    ma da lo stesso errore:

    "ActiveX component can't create object FaxServer.FaxServer.1"

  8. #8
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Ti dice la stessa cosa: l'oggetto che cerchi di creare non esiste!

    Roby

  9. #9


    però non mi hai risposto....
    ho capito che con quel metodo devo avere il relativo componente...

    ma se io uso:
    Set FaxServer = CreateObject("FaxServer.FaxServer.1")
    cioè quello usato su win2000 con il fax installato di windows, su xp da lo stesso errore, anche se da msdn dice che si può usare...

    quindi.... per inviare fax da pagine asp, cosa devo fare senza installare componenti a pagamento di terze parti?


  10. #10
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Forse quel componente non è installato bene.
    Cerca su google per quell'errore, potresti trovare qualcosa di utile.

    Roby

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.