Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for printing ideas
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00984763
Message ID:
00984941
Vues:
20
>Dawa
>
>I am not having a problem getting an Hdc. Maybe I need to clarify my initial post. I am trying to print out paper forms that are to be filled out by data in the DB and from checkbox controls on the GUI form. All of these forms are printed using Windows API commands like "TextOut" and "Rectangle" etc. The problem I have is that when I need the text changed on the paper printed out forms I need to change the text in the code and then recompile the app. My question is is there a better my that is easier to change when the text on the paper forms need to be altered. Some times I am too far into the next version and cannot recompile to make changes. The other thing I was thinking about was making more than one .exe that way I could recompile the code that creates the paper forms rather than the whole app.
>
>Thanks

I was fooled by the term "form". I was thinking of VFP forms instead of paper forms.

I have written an application that is similar as you are doing. My app printed images of formats that are not supported by VFP. I would populate the image descriptions along with other info from a table. Then I have labels for these descriptions e.g.:
Name: John Smith where "Name:" is my label.

I am taking that when you say text, it's same as the labels in my app? If so, what I've done in this case, I created a label mapping table with the following structure.
orgLabel NewLabel
Aaa        abc
Ccc        efg
Then I have a function that takes the original text or label caption and searches the orgLabel field, if found and there is a NewLabel then I replace caption with the value in NewLabel field. This way, you expose this table on a VFP form allow the user or yourself edit it. But make sure that you set maximum charater count, otherwise you would have text printed over areas where not desired.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform