?
Solved

Files and Port Managements

Posted on 2002-03-12
9
Medium Priority
?
163 Views
Last Modified: 2010-04-09
Hi, I'm trying to develop and accounting and invoicing system with a Web interface.
Even though I'm not a great HTML programmer I've always heard that one of the limitations of JavaScript/VBScript and I assume that HTML too, is that they can not manipulate files in the client???
Besides that is the fact that the system must be able to print in preprinted forms, Is it possible to send text to the printer in such an accurate way???

If the answers are yes, where can I find sample code to do such things.

Regards.
0
Comment
Question by:GustavoValdes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 400 total points
ID: 6858816
File on the client cannot be accessed with Javascript or HTML.  With plugins, activeX, and a lot of other unsecure methods, such things are possible.  For acounting apps, using such methods and creating security holes wil probably not do much to sell anyone on the app.

As for printing.  A browser can barely manage to print a web page in readable format.  Pre-printed forms are an absolute zero non-starter.  For any form you are best to use a printer friendly format like pdf, not HTML.

One other thing you may want to consider as well if you use JavaScrpt you will soon discover that it does not do floating poing arithmetic very well and you get some strange results when it has to work with currency unless you are very careful to manage all the rounding errors.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6858830
One of the things I work with are browser enabled accounting apps in intranets.  As a general rule the browser is used for display and data entry only.  The processing has to be done on the server for both security and reliability.

Cd&
0
 
LVL 1

Author Comment

by:GustavoValdes
ID: 6859016
But, what about printing???
How do you handle it in your system???
0
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6860391
If a user want hard copy of something they just use the print icon on the browser and live with the limitations.  For items where print quality is a concer we use pdf format.  For most print in accounting apps do do the formatting and printing server side.

If you do print ing from the client side, even with print friendly formats, there is no guarantee of print quality, because you cannot control printer setup.

Cd&
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6860598
Don't even bother trying to print on pre-printed forms -- unless the forms have a LOT of leeway (and even if they do), you're just going to waste a heck of a lot of paper.

It's hard to get preprinted forms to line up on a TYPEWRITER, let alone a printer where you can't control how the paper feeds (unless you're using a dot matrix printer with a tractor feed, which sets up a whole different set of problems...), and can't see how the form is lining up. Add to that using an interface where the user can change everything and anything, and it's a recipe for disaster.

You don't use pre-printed forms -- you have it all print at once. Then you CAN control how it lines up -- you're formatting the entire thing. At least then you've got a shot at it printing something usable.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6892544
What is the status of this?

Cd&
0
 
LVL 1

Author Comment

by:GustavoValdes
ID: 6892877
Unless the system is not working as it should, I already gave you 100 points.

Did you get them?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6892945
The update must have failed when you accepted the comment. The question still shows open.  Try it again and if there is a problem with the thread we can ask Community Support to have the engineers look at it.

Cd&
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6905866
Comment accepted as answer.

Computer101
E-E Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question