473,405 Members | 2,349 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,405 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 2607
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 ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.