J
jcvoon
Hi:
The following code work on win form application
Dim faxServer As FAXCOMLib.FaxServer
Dim faxDoc As FAXCOMLib.FaxDoc
faxServer = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
faxdoc = CType(faxServer.CreateDocument("c:\Doc\test.pdf"),
FAXCOMLib.FaxDoc)
faxDoc.RecipientName = "receiver"
faxDoc.FaxNumber = "12345"
faxDoc.DisplayName = "test"
faxDoc.Send()
faxServer.Disconnect()
when i port the code to web form
Dim faxServer As FAXCOMLib.FaxServer
Dim faxDoc As FAXCOMLib.FaxDoc
faxServer = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
faxdoc = CType(faxServer.CreateDocument(Server.MapPath("") &
"\Doc\test.pdf"), FAXCOMLib.FaxDoc)
faxDoc.RecipientName = "receiver"
faxDoc.FaxNumber = "12345"
faxDoc.DisplayName = "test"
faxDoc.Send()
faxServer.Disconnect()
It raise an exception "Access is denied. at
FAXCOMLib.FaxServerClass.Connect(String ServerName) at..."
If it is because of the IUSR account has no permission, then how do i
grant the permission to IUSR account so that it can access the Fax ? (I
don't know which resource to grant)
Another problem is (this happen in win form, but don't know it happen
in web form or not) when i try to fax the .pdf file it will launch the
adobe reader, how to avoid this ? at least the pdf viewer can close
automatically like when we fax the .txt document.
Please help (i need the solution urgently)
Thanks
JCVoon
The following code work on win form application
Dim faxServer As FAXCOMLib.FaxServer
Dim faxDoc As FAXCOMLib.FaxDoc
faxServer = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
faxdoc = CType(faxServer.CreateDocument("c:\Doc\test.pdf"),
FAXCOMLib.FaxDoc)
faxDoc.RecipientName = "receiver"
faxDoc.FaxNumber = "12345"
faxDoc.DisplayName = "test"
faxDoc.Send()
faxServer.Disconnect()
when i port the code to web form
Dim faxServer As FAXCOMLib.FaxServer
Dim faxDoc As FAXCOMLib.FaxDoc
faxServer = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
faxdoc = CType(faxServer.CreateDocument(Server.MapPath("") &
"\Doc\test.pdf"), FAXCOMLib.FaxDoc)
faxDoc.RecipientName = "receiver"
faxDoc.FaxNumber = "12345"
faxDoc.DisplayName = "test"
faxDoc.Send()
faxServer.Disconnect()
It raise an exception "Access is denied. at
FAXCOMLib.FaxServerClass.Connect(String ServerName) at..."
If it is because of the IUSR account has no permission, then how do i
grant the permission to IUSR account so that it can access the Fax ? (I
don't know which resource to grant)
Another problem is (this happen in win form, but don't know it happen
in web form or not) when i try to fax the .pdf file it will launch the
adobe reader, how to avoid this ? at least the pdf viewer can close
automatically like when we fax the .txt document.
Please help (i need the solution urgently)
Thanks
JCVoon