|
Thanks Richard, I should have been more specific in my original post. After being unable to find any useful information through google for free apis, I can use JTwain etc if needs be, I thought I would post here to see if anybody has been down this road before and could provide me with useful information on getting started.
|
|
|
|
|
|
Hi Gerbi,
This is one of the sites I came accross. It provides a very good introduction to using java with scanners though the only downfall is that the solution uses JTwain (highest liscence fee i have seen) though if i cannot find any opensource APIs this may be the way I will go. I may also start looking into a C# implementation.
Much thanks for your reply
|
|
|
|
|
Dont be confused by JTwain name used in this demo, it has not relation to asprise products.
When you have installed twain sdk you can build demo mentioned on this article.
It is not complete api/product but it is good point to start from.
|
|
|
|
|
Ah I see , I will take a further look into this.
Many thanks for pointing this out Gebri.
Much appreciated.
|
|
|
|
|
can i move the control from one page to the previous page and again back ....i mean writing the contents to different pages as they come.
Actually i have a jpanel which has some 386 fields i am trying put the graphics2d object of the same to pdf by pdfcontentbyte.I need to scale each of this field and place it in the a4 size doc at right position....this fields are coming randomly and can be placed on page 1 or page 2...as jpanel has a height of 2036 and a4 doc has a height of 842 ....so it has to go to next page but come back to the 1st page if a field belongs to there...
i know i am sounding a bit messed up..pls reply for any clarifications
|
|
|
|
|
|
so what...i havent used any forums ..just trying to get help and do my work...may be i am not as professional as you are...but what matters to me is my help and thats my concern nothing else...i am here not to give a repo of gr8 developer....i am lacking and illl improove..if u can help then please do help....if not then i dont give a damm
|
|
|
|
|
My point being that you have already been given some suggestions; have you tried any of them and if so what was the result? However, given your attitude (repeated use of the word damn, and telling us it's urgent) it's unlikely that people will be keen to offer much more.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
there was one suggestion from one of the guy but may be i wasnt able to explain my problem so he gave a generic solution which wasnt applicable to my needs...i am looking for some control in itext where in i can move back and forth from pages to write into them as my fields can be for 1st page or second...and so on
|
|
|
|
|
bijalvadher wrote: .i am looking for some control in itext
I would suggest then that this[^] is a better place to find the answer, as it's not really a Java issue.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hello,
my problem that I will make an application (in Java since it is android) will invoke procedures (implemented in C) has a remote server running on a host, and I do not know how to do (or what Socket ). while-I data as the number of the procedure call and has to pass the arguments on appeal and even the return types of the call) that is the signature of procedure in c.
I'm really blocked I do not know how to start my application.
Please show me how to do it .....
And thank you.
|
|
|
|
|
That's rather a lot you are asking for and it's difficult to know where to start with such a vague set of requirements. If you really have no idea about this then perhaps you should spend some time learning the basics of Android development: here[^] is a starting point for you.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I know about the android, but i want just some ideas to make a remote method call, but as you can see here is a client (java) which will call a server c (procedures).
and thank you for this answer .
|
|
|
|
|
Sorry but I'm still not sure what you are asking. Are you trying to communicate via a socket connection from phone to server or some other method?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
yes that's right. In fact I want to call these procedures (I have the signature c) Price from my android application via the network (of course the TCP / IP socket and I know the port also for communication)
|
|
|
|
|
OK, and what exactly is your problem? If this is just a question of a socket interface you need a client in Java at one end and a server in C/C++ at the other, plenty of samples available here in the articles or via Google.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I have a remote procedure void proc_xxx(int a, String y) written in C on a server via a java program (using socket or otherwise)? That's my problem
and thank you
|
|
|
|
|
Pinguin2011 wrote: I have a remote procedure void proc_xxx(int a, String y) written in C on a server via a java program (using socket or otherwise)? That's my problem
What exactly? Saying "I have X, that's my problem" does not really explain what you are trying to do or what your difficulty is. As I said before, if you want to connect via sockets then you need to write the socket front-end for the server and client and communicate that way by an exchange of data.
[edit]If you are trying to use RPC then take a look at these links[^].[/edit]
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I have a remote procedure proc_xxx void (int a, String y) written in C on a server and I want to invoke it by using a Java program (using socket or other)? That's it
|
|
|
|
|
I have suggested how to use sockets and given some links to information on RPC; writing the actual code is your part of the deal.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
no help
|
|
|
|
|
Pinguin2011 wrote: I'm really blocked I do not know how to start my application.
1. Learn basics of java
2. Learn basics of programming java on Android
3. Learn basics of implementing a java server with a web interface.
4. Learn how to write an Android app that can talk to a server
5. Learn basics of C
6. Learn how to make C and Java talk to each other (I suggest using application via Runtime rather than JNI.)
7. Collect requirements for your Android App and Server
8. Design a system (more than one application) using all you have learned and based on 7.
9. Implement the design.
10. Unit test the design.
|
|
|
|
|
Hi,
I'm writing a simple visitor-based analysis in Java using Eclipse. Here I have to implement a tree-walker analysis within Crystal. But I wanna know the difference (advantages/disadvantages) between implementing the visitor class inside the analysis class or outside that.
Ex: Inner visitor class
public class MyAnalysis extends AbstractCrystalMethodAnalysis {
...
private class MyVisitor extends ASTVisitor {
...
}
...
}
I really appreciate if some can tell me the difference between these two implementations.
|
|
|
|
|
I would turn the question around and ask: why do you want to make the visitor a private inner class? What are you hoping to gain by doing that?
|
|
|
|