prob with sending fax using asp.net
Reply
![]() |
|
From:
![]() isailesh
|
Hi All,
I wrote the following code to send fax.It is working properly if i am working with vb.net and Windows forms. But if I am trying to working using asp.net webform, it is giving error like "Access Denied" and sending fax was failed. If anybody knows the solution plz kindly inform me to [EMAIL PROTECTED] . plz urgent.....
Thanking u all in advance
sailesh
code:
Private Sub btn_send_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_send.Click
On Error GoTo errhandler
Dim strComputer As String
Dim oFaxServer As FAXCOMLib.FaxServer
oFaxServer = New FAXCOMLib.FaxServer
Dim oFaxDoc As FAXCOMLib.FaxDoc
oFaxServer.Connect("servername")
oFaxDoc = oFaxServer.CreateDocument("test.txt")
With oFaxDoc
.FaxNumber = "3343443"
.dDisplayName = "Fax Server"
Dim lngSend As Long
lngSend = .Send
End With
oFaxDoc = Nothing
oFaxServer.Disconnect()
oFaxServer = Nothing
Exit Sub
errhandler:
Response.Write(Err.Number & Err.Description)
End Sub
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. http://in.photos.yahoo.com |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|