Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is printing not supported in mirrored mode?
Is printing not supported in mirrored mode? [message #456041] Tue, 24 May 2005 21:12 Go to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C56083.BD7179C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I can see that although printing works when the GC has the SWT.RTL style =
bit set, it has a few bugs in it. Is printing a mirrored widget =
supported?
------=_NextPart_000_0008_01C56083.BD7179C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1498" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I can see that although printing works =
when the GC=20
has the SWT.RTL style bit set, it has a few bugs in it.&nbsp; Is =
printing a=20
mirrored widget supported?</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C56083.BD7179C0--
Re: Is printing not supported in mirrored mode? [message #456649 is a reply to message #456041] Mon, 06 June 2005 14:29 Go to previous messageGo to next message
Diego Celery is currently offline Diego CeleryFriend
Messages: 11
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_004B_01C56A8A.FA464EF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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/win=
32/
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=3Dnew PrintDialog(this.getShell());
PrinterData pData=3DpDialog.open(); //in this line is the =
problem
Printer printer =3D new Printer(pData);
GC gc =3D 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


"Pratik Shah" <ppshah@us.ibm.com> escribi=F3 en el mensaje =
news:d705gp$t9n$1@news.eclipse.org...
I can see that although printing works when the GC has the SWT.RTL =
style bit set, it has a few bugs in it. Is printing a mirrored widget =
supported?
------=_NextPart_000_004B_01C56A8A.FA464EF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1498" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hello, sorry for my english, i only speak Spanish. I'm trying to=20
speak<BR>English.<BR><BR>Problem:<BR>I have to print a ticket to a =
PocketPC=20
Windows Mobile 2003 installed<BR>printer.<BR><BR>This is the error=20
message:<BR>Exception in thread "main"=20
java.lang.UnsatisfiedLinkError:<BR>org/eclipse/swt/internal/win32/OS.Prin=
tDlgW(Lorg/eclipse/swt/internal/win32/<BR>PRINTDLG;)ZUnsatisfiedLinkError=
<BR><BR><BR><BR>I'm=20
trying to use the following packages and classes from SWT:<BR>import=20
org.eclipse.swt.printing.PrintDialog;<BR>import=20
org.eclipse.swt.printing.Printer;<BR>import=20
org.eclipse.swt.printing.PrinterData;<BR><BR>This is my short=20
code:<BR>PrintDialog pDialog=3Dnew =
PrintDialog(this.getShell());<BR>PrinterData=20
pData=3DpDialog.open();&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
//in this line is the problem<BR>Printer printer =3D new =
Printer(pData);<BR>GC gc=20
=3D new GC(printer);<BR>gc.drawString("Hello World Printer Test=20
Page!!",0,0);<BR><BR>PocketPC configuration:<BR><BR>I have copied the =
SWT.jar to=20
the pocket, and reference it with the=20
next<BR>argument:<BR><BR>"-Xbootclasspath/p:\Storage=20
Card\immapp\swt.jar;\Storage<BR>Card\immapp\WebServicesME.jar "<BR><BR>I =
have=20
installed swt-win32-3064.dll in the J9/PPRO10/bin =
directory<BR><BR><BR><BR>Then,=20
i don't understand what is missing? can you help me=20
please?<BR><BR>Thanks<BR><BR>Diego<BR><BR></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pratik Shah" &lt;<A=20
href=3D"mailto:ppshah@us.ibm.com">ppshah@us.ibm.com</A>&gt; escribi=F3 =
en el=20
mensaje <A=20
=
href=3D"news:d705gp$t9n$1@news.eclipse.org">news:d705gp$t9n$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I can see that although printing =
works when the=20
GC has the SWT.RTL style bit set, it has a few bugs in it.&nbsp; Is =
printing a=20
mirrored widget supported?</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_004B_01C56A8A.FA464EF0--
Re: Is printing not supported in mirrored mode? [message #456681 is a reply to message #456649] Mon, 06 June 2005 18:49 Go to previous message
Diego Celery is currently offline Diego CeleryFriend
Messages: 11
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_00D7_01C56AAF.5A8CDFD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

First, SORRY!!! I didn't try to send a personal e-mail. It was a stupid =
user mistake. I pressed an incorrect option. My apologies again.

do you really think that the SWT jar is not being found?
My SWT application(buttons, tabs, tables, .... ) is running correctly =
until i press the print button.
In the application shortcut i have the following arguments for loading =
the correct SWT.jar, and in the J9 bin directory is the correct dll :
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage =
Card\immapp\WebServicesME.jar"
and more.

I am using Websphere Studio Device Developer 5.7.1. Run..Run on Device

Thanks and regards
Diego




----- Original Message -----=20
From: Pratik Shah=20
To: Diego hotmail=20
Sent: Monday, June 06, 2005 2:19 PM
Subject: Re: Is printing not supported in mirrored mode?



Firstly, this is an SWT problem, not a GEF one. Secondly, you =
shouldn't be sending private emails, but asking such questions on the =
newsgroup. Keep that in mind in the future.=20

Your problem, it seems, is that the SWT jar is not found, not that =
printing is not supported. If you're using Eclipse 3.1, do Run... -> As =
SWT Application. If older platform, add the SWT jar to the classpath =
via the properties dialog (don't copy the jar).=20

Pratik Shah
Graphical Editing Framework (GEF)
http://www.eclipse.org/gef
Ph: (919) 254-5043
Fx: (919) 254-8169



"Diego hotmail" <diego_celery@hotmail.com>=20
06/06/2005 10:28 AM=20
To Pratik Shah/Durham/IBM@IBMUS =20
cc =20
Subject Re: Is printing not supported in mirrored mode?=20

=20

=20



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/win=
32/
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=3Dnew PrintDialog(this.getShell());
PrinterData pData=3DpDialog.open(); //in this line is the =
problem
Printer printer =3D new Printer(pData);
GC gc =3D 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

----- Original Message -----=20
From: Pratik Shah=20
Newsgroups: eclipse.platform.swt=20
Sent: Tuesday, May 24, 2005 6:12 PM=20
Subject: Is printing not supported in mirrored mode?=20

I can see that although printing works when the GC has the SWT.RTL =
style bit set, it has a few bugs in it. Is printing a mirrored widget =
supported?
------=_NextPart_000_00D7_01C56AAF.5A8CDFD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1498" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>First, SORRY!!! I didn't try to send a =
personal=20
e-mail. It was a stupid user mistake. I pressed&nbsp;an incorrect =
option. My=20
apologies again.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>do you really think that the SWT jar is =
not being=20
found?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>My SWT application(buttons, tabs,=20
tables,&nbsp;....&nbsp;) is running correctly until i press&nbsp;the =
print=20
button.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In the application shortcut i have=20
the&nbsp;following arguments&nbsp;for loading the correct SWT.jar, and =
in the J9=20
bin directory is the correct dll&nbsp;:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"-Xbootclasspath/p:\Storage=20
Card\immapp\swt.jar;\Storage Card\immapp\WebServicesME.jar"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and more.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am using Websphere Studio Device =
Developer 5.7.1.=20
Run..Run on Device</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks and regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Diego</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dppshah@us.ibm.com href=3D"mailto:ppshah@us.ibm.com">Pratik =
Shah</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Ddiego_celery@hotmail.com=20
href=3D"mailto:diego_celery@hotmail.com">Diego hotmail</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, June 06, 2005 =
2:19 PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Is printing not =
supported in=20
mirrored mode?</DIV>
<DIV><BR></DIV><BR><FONT face=3Dsans-serif size=3D2>Firstly, this is =
an SWT=20
problem, not a GEF one. &nbsp;Secondly, you shouldn't be sending =
private=20
emails, but asking such questions on the newsgroup. &nbsp;Keep that in =
mind in=20
the future.</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>Your =
problem, it=20
seems, is that the SWT jar is not found, not that printing is not =
supported.=20
&nbsp;If you're using Eclipse 3.1, do Run... -&gt; As SWT Application. =

&nbsp;If older platform, add the SWT jar to the classpath via the =
properties=20
dialog (don't copy the jar).</FONT> <BR><FONT face=3Dsans-serif=20
size=3D2><BR>Pratik Shah<BR>Graphical Editing Framework=20
(GEF)<BR>http://www.eclipse.org/gef<BR>Ph: (919) 254-5043<BR>Fx: (919) =

254-8169<BR></FONT><BR><BR><BR>
<TABLE width=3D"100%">
<TBODY>
<TR vAlign=3Dtop>
<TD width=3D"40%"><FONT face=3Dsans-serif size=3D1><B>"Diego =
hotmail"=20
&lt;diego_celery@hotmail.com&gt;</B> </FONT>
<P><FONT face=3Dsans-serif size=3D1>06/06/2005 10:28 AM</FONT> =
</P>
<TD width=3D"59%">
<TABLE width=3D"100%">
<TBODY>
<TR>
<TD>
<DIV align=3Dright><FONT face=3Dsans-serif =
size=3D1>To</FONT></DIV>
<TD vAlign=3Dtop><FONT face=3Dsans-serif size=3D1>Pratik=20
Shah/Durham/IBM@IBMUS</FONT>=20
<TR>
<TD>
<DIV align=3Dright><FONT face=3Dsans-serif =
size=3D1>cc</FONT></DIV>
<TD vAlign=3Dtop>
<TR>
<TD>
<DIV align=3Dright><FONT face=3Dsans-serif =
size=3D1>Subject</FONT></DIV>
<TD vAlign=3Dtop><FONT face=3Dsans-serif size=3D1>Re: Is =
printing not=20
supported in mirrored =
mode?</FONT></TD></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=3Dtop>
<TD>
=
<TD></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY> </TABLE><BR><BR><BR><=
FONT=20
size=3D3>Hello, sorry for my english, i only speak Spanish. I'm trying =
to=20
speak<BR>English.<BR><BR>Problem:<BR>I have to print a ticket to a =
PocketPC=20
Windows Mobile 2003 installed<BR>printer.<BR><BR>This is the error=20
message:<BR>Exception in thread "main"=20
=
java.lang.UnsatisfiedLinkError:<BR>org/eclipse/swt/internal/win32/OS.Prin=
tDlgW(Lorg/eclipse/swt/internal/win32/<BR>PRINTDLG;)ZUnsatisfiedLinkError=
<BR><BR><BR><BR>I'm=20
trying to use the following packages and classes from SWT:<BR>import=20
org.eclipse.swt.printing.PrintDialog;<BR>import=20
org.eclipse.swt.printing.Printer;<BR>import=20
org.eclipse.swt.printing.PrinterData;<BR><BR>This is my short=20
code:<BR>PrintDialog pDialog=3Dnew =
PrintDialog(this.getShell());<BR>PrinterData=20
pData=3DpDialog.open(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//in =
this line=20
is the problem<BR>Printer printer =3D new Printer(pData);<BR>GC gc =3D =
new=20
GC(printer);<BR>gc.drawString("Hello World Printer Test=20
Page!!",0,0);<BR><BR>PocketPC configuration:<BR><BR>I have copied the =
SWT.jar=20
to the pocket, and reference it with the=20
next<BR>argument:<BR><BR>"-Xbootclasspath/p:\Storage=20
=
Card\immapp\swt.jar;\Storage<BR>Card\immapp\WebServicesME.jar "<BR><BR>I =
have=20
installed swt-win32-3064.dll in the J9/PPRO10/bin=20
directory<BR><BR><BR><BR>Then, i don't understand what is missing? can =
you=20
help me please?<BR><BR>Thanks<BR><BR>Diego<BR></FONT><BR><FONT =
size=3D3>-----=20
Original Message ----- </FONT><BR><FONT size=3D3><B>From:</B> =
</FONT><A=20
href=3D"mailto:ppshah@us.ibm.com"><FONT color=3Dblue =
size=3D3><U>Pratik=20
Shah</U></FONT></A><FONT size=3D3> </FONT><BR><FONT =
size=3D3><B>Newsgroups:</B>=20
eclipse.platform.swt</FONT> <BR><FONT size=3D3><B>Sent:</B> Tuesday, =
May 24,=20
2005 6:12 PM</FONT> <BR><FONT size=3D3><B>Subject:</B> Is printing not =
supported=20
in mirrored mode?</FONT> <BR><BR><FONT face=3DArial size=3D2>I can see =
that=20
although printing works when the GC has the SWT.RTL style bit set, it =
has a=20
few bugs in it. &nbsp;Is printing a mirrored widget=20
supported?</FONT></BLOCKQUOTE></FONT></DIV></BODY></HTML >

------=_NextPart_000_00D7_01C56AAF.5A8CDFD0--
Previous Topic:Problem saving preferences in eclipse 3.1
Next Topic:How to set the tooltip of a toolbar combo box?
Goto Forum:
  


Current Time: Fri Apr 26 21:05:40 GMT 2024

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

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

Back to the top