473,239 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

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 2598
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Steve Westwood | last post by:
I have a WebForm button. Depending on calculation I wont to send a popup message to the web page. I am not sure of the approach. From the server side code I don't seem to be able to access the...
13
by: Richard H | last post by:
Hi, I am building a site for a client which has an enquiry form on it. Normally I would something like PHP to send the form but the client doesn't want to pay for a server that supports PHP, so...
6
by: Guadala Harry | last post by:
I have some client-side JavaScript that, among other things, calculates the value of a variable (myVar). On the server I have a stored procedure that needs to somehow receive as an input parameter...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
5
by: Lucas Tam | last post by:
Hi all, Has anyone done this before? Send client side keystrokes to an application from a webpapge? This maybe more of a Javascript question. In short, I have an application on the client's...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
1
by: Arodicus | last post by:
Is there a way to send a parameter/variable to my XSLT using ONLY client-side methods for normal browsers? My host doesn't allow any server-side scripting. There are plenty of examples for doing...
4
by: drec | last post by:
I currently have a script together that will display one record per page and allow the user to manually click through pages to view the next record. How can I translate this to printing the data? ...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
4
by: shailendra deshpande | last post by:
right now i have only pain html page.and i want to send email through it using javascript plz. anybody tell me how to send email from plain html page using javascript. thanks in advance ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.