few questions and one bug

Stimulsoft Reports.PHP discussion
Post Reply
Uros
Posts: 7
Joined: Wed Oct 19, 2011 10:18 am
Location: Beograd, Srbija

few questions and one bug

Post by Uros »

Hi, I have few questions:

1) I have problems with font display. If I figured out correctly, ReportsFx uses fonts from client machine and rely on fall-back mechanism on client machine if font type found in .mrt is not found. Is there a way to load fonts in ReportsFx from server (since Flash in general allows custom fonts)? If not, is there mechanism similar to font stacks with precisely defined fall-back scheme as used in typical CSS?

2) Can you provide some more info regarding XML type of connection? In my particular case I have to retrieve data from JSON objects of rather complex structure (lots of nesting and variable length of data arrays) before sending that data to ReportsFx, so it would be logical to use equivalent XML described with appropriate XSD. But, I'm a bit confused on how to use XML type of connection. I have found on this forum few topics regarding this issue (here and here) however it seems to me that simple XML structure is used to describe data rather than proper XSD. On the other hand, with demo package for RporstFx came two files (Demo.xsd and Demo.xml) which got me puzzled on what is appropriate way to use XML data sources.
Also, what is function of FlexAdapterXmlData in config file? If I figured out correctly, I should set FlexAdapterXmlData to false, and return my own data in functions declared in database_xml.php? In that case, what should be set in xsd path and xml path fields that are prompted when I try to make XML connection? And should I return proper XSD file on RetriveColumns request or am I limited to structure Vladimir described in post I've linked above?


Bug:
when ever I try to enter any text "Title" field in "Legend" part of Chart parameters, application crashes (most of data disappear in both designer and preview window, controls become unresponsive and I have to reload app.) This does not happen if Series is not set for Chart, how ever as soon as I set Series for chart app. crashes.

best regards
Uroš
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

few questions and one bug

Post by Vladimir »

Hello,

1. Unfortunately, it is possible to use only the fonts that are installed on the client side.

2. If the FlexAdapterXmlData option is set to True, then use the built-in Flash XML adapter. If that option is set to False, then the XML data is requested from the server using the functions that are located in 'database_xml.php' file. In these functions, you can return XML data, created by different ways (from file, from database or created by code). XSD schema needs to the RetriveColumns function, XML data is needed to generate a report.

Bug: the error is fixed, update will be available in release 2011.3 on December, 1.


Thank you.
Post Reply