logo

exactly how do you copy/paste?

Beverly Howard replied to damezumari on Wednesday, November 18, 2009 11:12 AM

exactly how do you copy/paste? as many details as possible would help.


My primary suspect would be that it is a unicode issue.  posting a file
with sample text that does not work would help narrow it down.

A quick, short term solution would be to export the summary to something
that can handle it and printing a summary page with that.

Beverly Howard
reply


While I might have hit on the cause, I do not have an answer...

Beverly Howard replied to damezumari on Wednesday, November 18, 2009 12:47 PM

While I might have hit on the cause, I do not have an answer...

The pdf properties shows that at least one font is unicode and I assume
the others are as well.

Since the only unicode entries in vfp help reference conversion _from_
unicode, assume that it may not be directly supported.

I assume you have tried to select and use the appropriate tt fonts when
designing the form?

Beverly Howard
reply

Take a look at the vfp help "unicode property" and see if that might help.

Beverly Howard replied to damezumari on Wednesday, November 18, 2009 12:48 PM

Take a look at the vfp help "unicode property" and see if that might help.

Beverly Howard
reply

And what about word wrap in a field?

Beverly Howard replied to damezumari on Wednesday, November 18, 2009 12:54 PM

And what about word wrap in a field? <<

In a data field, check "stretch"

In a fixed text field, you can add <cr> when editing or entering plus
use the formatting commands in the menu when selected... i.e. center, etc.

Beverly Howard
reply

VFP does not support unicode.

Olaf Doschke replied to damezumari on Wednesday, November 18, 2009 1:24 PM

VFP does not support unicode.

it is strings are kind of accepting anything inside (binary), but most string
functions and especially the output of strings in form or report controls is
using an ANSI codepage, typically the one in correspondance with the windows
version. For most western countries this is codepage 1252.

There is no way to get all three texts in one field only.

You can use STRCONV() to convert Unicode or UTF-8 into an ANSI codepage, but
that would only cover one language.

For example:

lcText = 'ű¹¾î¿Í'
? STRCONV(STRCONV(lcText,10),11,949,1)

This should convert the gibberish in lcText to koreoan. lcText in fact
contains the binary representation of unicode characters for ????. But you would
need a korean windows or at least the needed fonts etc so that this codepage
949 korean text is not converted back (of course unsuccessful) to codepage
1252 not having any korean characters.

Bye, Olaf.
reply

Korean, Thai, and English on the same report

damezumari posted on Wednesday, November 18, 2009 4:20 PM

I use VFP9 and WinXP. I want to create a report where most everything
is in English, but there is a also a summary in Korean and Thai to go
on it. When I try to copy and paste the text on to the report I only
get gibberish. I could do this in MS Access without any problems. How
do I do it in VFP9?

Regards,

Jan Nordgreen
reply

Hi Beverly,Thank you for your answer.

damezumari replied to Beverly Howard on Wednesday, November 18, 2009 4:20 PM

Hi Beverly,

Thank you for your answer. I have explained the problem further and
given the Thai and Korean text in http://easyquestion.net/files/thaikorean.=
pdf.

How do I allow for Unicode in a Foxpro report? The Thai and Korean
text has to appear in the same report as the English text.

Also, how do I get word wrap in a label? Do I have to insert chr(10)?
And what about word wrap in a field?

Regards,

Jan Nordgreen
reply

ingisowsbutu'dageHi all,Thank you for all your help!

damezumari replied to Olaf Doschke on Thursday, November 19, 2009 6:55 AM

ing
is
ows
but
u'd
age

Hi all,

Thank you for all your help!

We will use print screen and an image for the Thai and Korean text.

Regards,

Jan Nordgreen
reply

Hi,as far as I know there is no way to do it with fox, due to missing

tom knauf replied to damezumari on Thursday, November 19, 2009 9:47 AM

Hi,

as far as I know there is no way to do it with fox, due to missing full
unicode support.

What about :
doing it with an rtf control (with print function, not the fox one) ?
creating an html page and printing it with the explorer object (not sure on
that) ?
use word automation ?

Best regards
tom
reply

Or one of the various activex richtext editors such as Ter or TextEdit.

Jeff Grippe replied to tom knauf on Thursday, November 19, 2009 10:04 AM

Or one of the various activex richtext editors such as Ter or TextEdit. Even
the MS RTF control might do the job.
reply

Hi Jan (or "damezumari"?

Jürgen_Wondzinski replied to damezumari on Thursday, November 19, 2009 3:19 PM

Hi Jan (or "damezumari"?)

Of course you can show different types of fontsets in VFP (eventhough VFP
is not unicode capable), as long as you are using VFP9!

a) First you need to get that Thai and Korean stuff into your table: set up
your entryform to have separate textboxes for the Thai and Korean input,
attached to different fields in a DBF.  At the textboxes takes special note
of the property FontCharSet: Selct it and press the "..." Button in the top
of the propertysheet. Select the appropriate Font as well as the Script in
the Script-DropdownListbox.

Then enter your foreign data.

b) If you then browse those foreign fields in your table, you will see
your report and again setup those fontname and fontcharset properties for
those outputfields to the same setting as in your form, you will have your
Thai characters also on the report.

FontCharsets are similar to the "good ol'" codepages in DOS: They are
subsets of a regular 255 character font, mapping some chars to different
symbols depending on the choosen Charset. In Unicode you have all symbols in
one font and you can use them simultaniously, with Charsets you can set only
one charset per field. Thus you cannot have a memofield containing both
Englisch and Thai symbols, but you can have different fields in different
settings.



--

wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



?.???.?*??) ?.?*?)
(?.??. (?.?` *
..?`.Visual FoxPro: it is magic !
(?.?``??*
reply

Thanks... excellent information... stored for future use.Beverly Howard

Beverly Howard replied to Jürgen_Wondzinski on Thursday, November 19, 2009 9:55 PM

Thanks... excellent information... stored for future use.

Beverly Howard
reply

This is a multi-part message in MIME format.------=_NextPart_000_0032_01CA6AC3.

Alex.K replied to damezumari on Saturday, November 21, 2009 5:58 PM

This is a multi-part message in MIME format.

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

Hi Jan,

Our product needs to print Documents and Reports in multiple languages, =
so we subclassed the ReportOutput and ReportPreview (for custom design =
and Modal support) and added Unicode support.
We store the text as UTF8 in Binary Memo fields. =20

You can view a sample PDF from VFP9 output with 30 different languages =
at the same time.


- Craig




------=_NextPart_000_0032_01CA6AC3.76385250
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

http-equiv=3DContent-Type>
and Reports in=20
multiple languages, so we subclassed the ReportOutput and ReportPreview =
(for=20
custom design and Modal support) and added Unicode support.</FONT></DIV>
Memo=20
fields.  </FONT></DIV>
href=3D"http://www.enviro-soft.com/files/Reports/Multi-Lingual =
Report.pdf">sample=20
time.</FONT></DIV></DIV>
href=3D"mailto:jannordgreen@gmail.com"><FONT size=3D2=20
face=3DArial>jannordgreen@gmail.com</FONT></A><FONT size=3D2 =
face=3DArial>> wrote=20
in message </FONT><A=20
s.com"><FONT=20
size=3D2=20
groups.com</FONT></A><FONT=20
size=3D2 face=3DArial>...</FONT></DIV><FONT size=3D2 face=3DArial>>I =
use VFP9 and=20
WinXP. I want to create a report where most everything<BR>> is in =
English,=20
but there is a also a summary in Korean and Thai to go<BR>> on it. =
When I try=20
to copy and paste the text on to the report I only<BR>> get =
gibberish. I=20
could do this in MS Access without any problems. How<BR>> do I do it =
in=20
VFP9?<BR>> <BR>> Regards,<BR>> <BR>> Jan Nordgreen</FONT>=20

------=_NextPart_000_0032_01CA6AC3.76385250--
reply

 

Didn't Find The Answer You Were Looking For?

View FoxPro Programmer Exchange Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum


FoxPro Help Wanted    FoxPro Programmer Exchange   




  $1000    Adam Houldsworth - $187  |  Jonathan VH - $139  |  Kirtan Patel - $117  |  F Cali - $116  |  Huggy Bear - $88  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010