Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Exporting Data

Status
Not open for further replies.

joazes

Programmer
Sep 18, 2003
13
BR
Hi, 4 all!

Someone knows how do I to win a class, through applets, to send data parameter to Microsoft Excel or Lotus Notes mail?

thanks in advance,

joazes
 
I'm sorry, but I do not understand the question:

>>how do I win a class, through applets

Could you please explain what you mean by "win a class".

if you are looking for info on how to write data to excel, checkout these links: Thread269-556442 Thread269-556442
 
ok JVZ, I will explain better what I want saw "win a class". I'm brazilian and speak not so much in english... sorry... The situation is below:

1. An Worksheet Excel (or Lotus Notes Mail) are open;
2. Is running an applet called from one of its describe on step 1.
3. A interface window (JFrame) having two JTextField and I want that the applet send this two JTextField (after users typewriter)as parameter (export) into cell worksheet or Mail Notes.

I hope have be expressed fine.

joazes
 
Assume you are running MS Windows.
I think you can create a simple java application.
The java application accept user input, then the application output the result to clipboard.

Then the user press control-V or Paste the dat from clipboard.(Within Excel)

import java.awt.*;
import java.awt.datatransfer.*;
class myPaste
{
public static void main(String args[])
{
StringSelection ss = new StringSelection("The message produced by Java");
Clipboard clip=Toolkit.getDefaultToolkit().getSystemClipboard();
clip.setContents(ss,ss);
}
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top