Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need text running down the page on right side
Message
De
28/02/2008 18:48:22
 
 
À
28/02/2008 08:34:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01296548
Message ID:
01297614
Vues:
20
Thanks. This is really helpful, I'll check it out.

>David,
>
>I'd follow Cathy's suggestion.
>
>Report listeners are not that complicated, because we already have 5 or 6 good samples that control the rendering manually.
>
>For my FullJustified report, I did exactly what you need, but for different purposes.
>See: http://weblogs.foxite.com/cesarchalom/archive/2007/04/05/3641.aspx
>
>
>There I checked before drawing the text in the report if the string needed to be drawn full justified. If positive, I retrieved all the information from the desired string, Caption, colors, background, size, font, fontstyle, and drawn manually the text. Works very nice.
>
>
>Garret Fitzgerald has another cool listener (in which I based mine) that you can also find helpful:
>http://code.msdn.microsoft.com/VFPGDIPlusReportList/
>
>
>
>If you want to follow Bo's suggestion but still don't want to create an EMF, you can still create the text in a much bigger image, save it as BMP (or PNG, that will keep the same quality with less space usage). When drawing, the report will stretch that image to the needed size. When reducing the size, you wont note a quality loss.
>
>
>Hope this helps
>
>Cesar
>
>
>
>
>
>>>Cathy,
>>>
>>>Thanks! I tried this. It works. A few things:
>>>I don't know how to set height and width at runtime - can I access report object via object syntax?
>>>I didn't seem to need this anyway? I can put the object in page header then drag the bottom to below the detail band.
>>>Biggest problem: resolution. I created a paint bmp. I need 6 pt type (maybe even 5) The resolution is somewhat hazy - even with the 8pt that paint let me create. What is the best image format with the best resolution, with what tool? I am not that well versed in image creation. Will I be able to approximate the quality of straight text?
>>>
>>>If the resolution remains a problem I might have to try something else, e.g. word automation, or, figure out the listener thing.
>>
>>In VFP 9, you can double-click on a report object and in the properties dialog, there is a height and width option to set.
>>
>>I've read through this thread and it seems that you're jumping through hoops to figure out how to use a graphic file and looking into spending money to do so. I really suggest learning how to use a reportlistener to draw the text yourself with GDI+. No special graphic files or 3rd party tools would be needed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform