2012-08-17

FoxyPreviewer latest changes in v2.99

IMPORTANT FIX

I think I finally caught one of the most challenging bugs we had in FoxyPreviewer, that made the reports render only the data from the first field in some reports that used Private DataSessions, and some other specific settings.

I received complaints from 4 people in the last year, but nobody could give me any clue about what was going on, or to help me to reproduce the problem. I finally found a good soul, Flavio Cardoso, from the brazilian VFP user group, who had the same issue, and provided the needed information, and worked with me during some hours to solve this JUMBO issue.

So, please, test the latest version with care v2.99m or higher, and let me know how it goes!

Below, some information about the latest changes in FoxyPreviewer, in case you missed:



v2.99m - 2012-08-17

** VERY IMPORTANT FIX **In some cases, when using Private datasessions, depending on the environment settings
some reports rendered the data of the 1st field only. If you had this issue before, please test this release



Other fixes / improvements

Fix: FoxyPreviewer disabled form's close button - http://foxypreviewer.codeplex.com/workitem/9275
Fix: Rearranged the order of the buttons in the preview toolbar and context menu, in order to make the buttons to appear at the same order in both places, thanks to Mark Winston

New properties:
- “nThermFormWidth” – numeric, specifies the width of the Thermometer form. Useful when a big caption is needed. Works only if “.nThermType = 2 && Windows default”
- “lShowFileFormatIcons” - logical, allows hiding the file format icons in the context menus.

Cool information:
Mark Winston, brought to my knowledge that "sec(s) or secs" is not the correct abreviation for the word "seconds". After a small research, we found that just an "s" is the correct way to abreviate. I will not change the default behavior, because it's the way VFP originally used in the Thermometer form, that shows the report progress. If you want to change it, it's very easy, just try:

DO FoxyPreviewer.App
_Screen.oFoxyPreviewer._SecondsText = "s by Mark Winston"
REPORT FORM LOCFILE(_Samples + "\Solution\Reports\Wrapping.frx") PREVIEW



BTW, You can play changing these properties below as well, if you prefer:

? _Screen.oFoxyPreviewer._CancelinStrText
? _Screen.oFoxyPreviewer._AttentionText
? _Screen.oFoxyPreviewer._CancelQueryText
? _Screen.oFoxyPreviewer._InitStatusText
? _Screen.oFoxyPreviewer._PrepassStatusText
? _Screen.oFoxyPreviewer._SecondsText



v2.99c - 2012-08-08
- Fix in PDF listener, adjusting some constant values, in order to store metadata correctly.
http://foxypreviewer.codeplex.com/workitem/9434 - Thanks to Martin SYkora
- Fix in RTF Listener, now making the default language according to the codepage selected (originally was always forcing to Russian)
- Fix for issue: http://foxypreviewer.codeplex.com/workitem/9506
- New property: “cFaxPRG”, allowing sending faxes from FoxyPreviewer using your custom Faxing procedures. Notice that FOxyPreviewer does not bring any internal code to manage faxes. With this property, I'm just opening a "door" to allow you to receive some info from FoxyPreviewer and send your documents using your Faxing app.
To make Foxy show a "Send to fax" button in the email form, you need to fill the property “cFAXprg”, with the name of a PRG that will be responsible of sending the fax, for example:






_Screen.oFoxyPreviewer.cFaxPrg = “mySendFax.prg”

Then, your “MYSENDFAX.PRG” program MUST start with a LPARAMETERS statement, that will receive from FoxyPreviewer some needed parameters to send your fax:






LPARAMETERS tcFile, tcFaxNumber, tcHTMLBody, tcSubject* Where:
* tcFile = the file name that brings your report
* tcFaxNumber = the fax number that your client will fill in the email field
*               in the email form
* tcHTMLBody = the text that your client wrote in the email form
* tcSubject = the subject filled





v2.99 - 2012-06-20

- Included "lSilent" property in simplified mode
- Fix in PDF listener, allowing images embedded in the EXE to be shown in the exported files
- Fix in PDF and RTF listener, allowing merging reports using OBJECTTYPE 10 (Other types not available yet)
- Included new PRG: "FOXYGETIMAGE.PRG". Include this file in your EXE project if you have images embedded in your EXE that you want to appear in your report. This may bring some security issues to your EXE, because this program will allow FoxyPreviewer to access the embedded images of your EXE.
- Fixed Issue "Emailto, subject and file name settings do not update" http://foxypreviewer.codeplex.com/workitem/9362
- Fix in ExcelListener: to allow flexible Currency and ()'s for Negative - by Rick Bean
- Fix in Report exporting, when some objects were not respecting the original report position (front and back) http://foxypreviewer.codeplex.com/workitem/9276



FoxyPreviewer Links

15 comments:

  1. Hola Edgard es probable enviar un informe a PDF, correo electronico sin enviar vista previa de este como q en ves de hacer vista previa visible sea oculta y luego se envie el reporte a pdf o enviarlo por correo electronico.

    desde ya muchas gracias.

    Saludes

    ReplyDelete
  2. Grande Cesar!

    Como eu faço pra emitir 2 relatórios de dimensões diferentes (portrait e landscape) ao mesmo tempo com o FoxyPreviewer?

    Obrigado!!!

    ReplyDelete
  3. Olá Cleyton,

    Infelizmente isso não está disponivel.
    Abraços

    ReplyDelete
  4. Hello, thank you for providing FoxyPreviewer! In the course of a few questions to ask your advice.
    1, the original reporting tool with the default report, in FoxyPreviewer is displayed as "*" sign, and the title is displayed as blank.
    2 and convert into excel file, the grid lines sometimes do not.
    3, if you do not use FoxyPreviewer tools, how to restore the default report preview program? I try to VFP9.0 unloading, but still can not restore the default preview

    I hope to get your answer, thank you!...

    ReplyDelete
  5. when Main Form desktop=True, issue is Print preview toolbar going to stuck

    ReplyDelete
  6. Great job Cesar

    I am testing the last version of FoxyPreviewer v2.99z30, when I print in pdf the images are not exoprted. I try all formnts bmp, jpg, png bu the result is the same.

    Is ther a setting for images

    ReplyDelete
  7. Hi
    This is an amazing peice of code, only issue I am having is with 'stretch with overflow' fields, they do not stretch and only show the first line with a ... at the end

    ReplyDelete
  8. VERY GOOD AND USEFUL CODE THANK U VERY MUCH, ALSO TELL US IS THERE ANY CODE FOR VFP 6.0 CAUSE THIS CODE IS ONLY WORKING IN VFP9.0

    ReplyDelete
  9. Hello,
    Thanks for your message.
    For older VFP versions, you can use GPIMAGE2: https://sites.google.com/site/gpimage2

    Good luck!

    ReplyDelete
  10. Make sure to use the "Simplified" mode!

    ReplyDelete
  11. Make sure to use the latest version provided in the website!
    ALso, use the "Simplified" mode!

    #1 - try setting the property "_Screen.oFoxyPreviewer.lExpandFields = .T."
    #2 - The Excel conversion is tricky, try adjusting the columns in your report with extra care, making sure all fields are perfectly aligned to obtain satisfactory results in Excel columns
    #3 To turn off Foxy, do one of the following:
    SET REPORTBEHAVIOR 80
    or
    DO FOXYPREVIEWER.APP WITH "Release"

    Hope that helps!

    ReplyDelete
  12. Trying to track down the progress on Vsn 3, desperately need the "nRenderMode = 2 or 3" setting. Does anyone know the status of this?

    ReplyDelete
  13. Thanks for having FoxyPreviewer. Helping us to programming more efficiently. We are waiting for the 3.0 version complete with enthusiasm.

    ReplyDelete
  14. Thanks for having FoxyPreviewer. Helping us to programming more efficiently. We are waiting for the 3.0 version complete with enthusiasm

    ReplyDelete
  15. As the previous user stated, we're looking forward to the new version 3.0.

    ReplyDelete