Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is printing not suported for Pocket PC Windows Mobile 2003?
Is printing not suported for Pocket PC Windows Mobile 2003? [message #456672] Mon, 06 June 2005 15:08
Diego Celery is currently offline Diego CeleryFriend
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
Previous Topic:Printing from a SWT PocketPC standalone application problem
Next Topic:How to layout MenuItems ?
Goto Forum:
  


Current Time: Tue Apr 16 10:41:16 GMT 2024

Powered by FUDForum. Page generated in 1.23235 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top