Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Frx prints inside calling form
Message
De
17/06/2010 08:04:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01468972
Message ID:
01469393
Vues:
41
>I may have narrowed my problem down to this. I always try to make my code useful. For instance, when preparing to print reports I have a form that enables you to select the report you want by moving it from one edit box to the "to be Printed" side. Okay, that has always worked before for me. But now it seems when that mover box creates the report command, and extra carriage return is some how entered into the character string.
>m.lcReport = "Report Form " + lcChosenReport + " Preview"
>The report name is held in a memo field and when needed/selected, it is stored in the mv lcChosenReport.
>When I use the macro expansion to execute this concatenated string, the "preview" text appears on a second line causing the report to mishandle my desired output.
>If I explicitly issue the command with hard coding, it works as expected.
>I have tried to strip the chr(13) from the mv lcChosenReport before concatenating, but the "preview" option still appears on line 2.
>
>This issue just came up to rear its ugly head, so I must have changed (hosed) something in my environment?
>
>Thanks,
>
>Gary De Lecce

It sounds like you have CHR(13) or CHR(13) + CHR(10) stored after your report name in the memo field. The easiest way to fix this is to edit the memo field manually :) otherwise use STRTRAN() or CHRTRAN() or maybe even TRANSFORM() to get rid of any characters that you don't want.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform