Is printing not suported for Pocket PC Windows Mobile 2003? [message #456672] |
Mon, 06 June 2005 15:08 |
Diego Celery Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Hello, sorry for my english, i only speak Spanish. I'm trying to speak
English.
Problem:
I have to print a ticket to a PocketPC Windows Mobile 2003 installed
printer.
This is the error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org/eclipse/swt/internal/win32/OS.PrintDlgW(Lorg/eclipse/swt /internal/win32/
PRINTDLG;)ZUnsatisfiedLinkError
I'm trying to use the following packages and classes from SWT:
import org.eclipse.swt.printing.PrintDialog;
import org.eclipse.swt.printing.Printer;
import org.eclipse.swt.printing.PrinterData;
This is my short code:
PrintDialog pDialog=new PrintDialog(this.getShell());
PrinterData pData=pDialog.open(); //in this line is the problem
Printer printer = new Printer(pData);
GC gc = new GC(printer);
gc.drawString("Hello World Printer Test Page!!",0,0);
PocketPC configuration:
I have copied the SWT.jar to the pocket, and reference it with the next
argument:
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
Card\immapp\WebServicesME.jar"
I have installed swt-win32-3064.dll in the J9/PPRO10/bin directory
Then, i don't understand what is missing? can you help me please?
Thanks
Diego
|
|
|
Powered by
FUDForum. Page generated in 1.23235 seconds