468,545 Members | 1,905 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,545 developers. It's quick & easy.

Send Fax on client side using JavaScript

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

Nov 19 '05 #1
2 2427
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 ?

--
Patrice

"jcvoon" <jc*******@yahoo.com> a écrit dans le message de
news:11**********************@g49g2000cwa.googlegr oups.com...
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

Nov 19 '05 #2
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

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Steve Westwood | last post: by
13 posts views Thread by Richard H | last post: by
6 posts views Thread by Guadala Harry | last post: by
5 posts views Thread by Lucas Tam | last post: by
9 posts views Thread by Mahernoz | last post: by
4 posts views Thread by drec | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.