Send Fax on client side using JavaScript

J

jcvoon

Hi:

It is possible to send a downloaded pdf file to fax printer using
javascript ?

something like this, but i can't make the following code work.

function FaxDocument()
{
var faxServer = new ActiveXObject("FAXCOMLIB.FaxServer");
var faxDoc = fs.CreateDocument("d:\\test.pdf");

faxServer.Connect("LocalFaxServer");
faxDoc.FaxNumber="18008737822";
faxDoc.Filename="d:\\test.pdf";
faxDoc.Send();
faxServer.Disconnect();

alert("Done");
}

If not possible is there other way to achieve this ?

Please Help
JCVoon
 
P

Patrice

Have you done something regarding security settings ? By default you can't
create an object instance that would allows access to local resources.

Depending on how easy it would to deploy this change on the targeted client
computers, another option could be to have the user uploading the file to
the server and fax from the server ?
 
J

jcvoon

Hi Patrice:

Thanks for the reply.

I'm able to fax from the server, but my boss request to do it on client
side.
Regarding the security setting, i don't know what to set, is it posible
to mark the COM object as safe to execute on javascript / vbscript ?

Regards
JCVoon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top