Horche Gratsias wrote:Hi there ,
how can i print data to a scanned file.
What i mean is i have scanned one A4 File (application form ) and i want to fill this with input from the user and then print it.
Any help is most welcome.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:Horche ,
My guess as to why you're not getting any responses is that your question is not terribly clear. I, for one, am not sure what you mean by an "A4 File (application form)".
And by "scanned', do you mean you have scanned it in as (say) a .jpg?
Part of the deal is that for you to get help, you need to make it as simple as possible for folk to help you. And remember, you are dealing with an international audience.
So I would suggest your read our FAQ on HowToAskQuestionsOnJavaRanch (<--that is a link). Give us more information on what EXACTLY you have done, and what you are trying to do.
Horche Gratsias wrote:so when i open the form i want to load the form but also to be able to input data on the fields i said before.I have other fields but thats the idea of what i want to do.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Horche Gratsias wrote:so when i open the form i want to load the form but also to be able to input data on the fields i said before.I have other fields but thats the idea of what i want to do.
I think you're confusing the business of collecting the details with printing the form; and I'm still not quite certain what any of this has to do with scanning an image.
Suppose, for sake of argument, this is a Tax form:
You're going to need to have some way of collecting Tax details from a customer. You're going to need some way of printing those details out in a predefined format.
but neither activity is related to the other, except possibly via a TaxDetails object; and the latter has absolutely nothing to do with scanning - unless you're talking about a pre-printed form; in which case it's use would probably be controlled by selecting a tray on the printer.
On the other hand, if you actually want the details to be part of the print image, you'd probably be better off using something like a PDF or PostScript generator; but again, this has nothing to do with scanning.
Winston
I think you're confusing the business of collecting the details with printing the form; and I'm still not quite certain what any of this has to do with scanning an image.
You're going to need to have some way of collecting Tax details from a customer.
yes i will make the input.
You're going to need some way of printing those details out in a predefined format.
Horche Gratsias wrote:
Hi Winston
I think you're confusing the business of collecting the details with printing the form; and I'm still not quite certain what any of this has to do with scanning an image.
no that the result of this
first i have to fill the form with user input
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:
Horche Gratsias wrote:
Hi Winston
I think you're confusing the business of collecting the details with printing the form; and I'm still not quite certain what any of this has to do with scanning an image.
no that the result of this
first i have to fill the form with user input
No, you don't. Getting the data has nothing to do with 'filling in the form'. Perhaps the form tells you what data you need to get, but you should separate out the logic.
For example, getting a person's first name.
You may want to get it so you can print "Hello, Fred". You may want to get it to store it in a database. You may want to get it to print it out eventually. But it doesn't matter what you want to do with it once you have it - you just need to get it.
Now, eventually, you may want to make the 'getting it' LOOK like the person is filling out a form - but again, that is a separate issue.
Good code keeps unrelated things separated. Getting the data should not be tied to printing the data or displaying the data.
Consider Paul's rocket mass heater. |