Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
Divers
Thread ID:
00918779
Message ID:
00919573
Vues:
7
Hi Lisa,

1. First a correction from my side. Not all reports to HTM comes out empty, but 12 of 17 does.

2. Yes it is done in an EXE.

3. Both _REPORTPREVIEW and _REPORTOUTPUT has appropriate values (set up in startup of application).

4. When runnig with XML output all 17 reports work fine.

5. The following code is used for Html output:
	Do (_ReportOutput) With 5   
         Report Form (lcSeleReport) Object Type 5
and this for XML:
	Do (_ReportOutput) With 4   
         Report Form (lcSeleReport) Object Type 4
6. I am getting error 2062 "The specified key already exists" twice subsequently when running HTM and XML output. But pressing ignore twice gets you through it. Do you know what could be the reason for this error ?

7. I tried your code with a report that doesn't generate any output in html and it generated an complete XML Ok, but as I mentioned earlier all reports work fine for XML.

/Torgny


>Based on your other message, did you do this in an EXE?
>
>IAC, please take the code *out* of your custom class, it is just test code so we could get at the XML, not meant to be run in an application of *any* kind.
>
>Ensure that _reportoutput has an appropriate value (which, right now, it probably would not in an EXE). By default, that would be HOME() + "reportoutput.app".
>
>The file referred to in _reportoutput must exist and, to run the test code I wrote for you, it has to be the app delivered with the product (using the _oReportOutput collection is leveraging something specific to that app).
>
>Assuming the above conditions are true, in a simple test program, the below program should work.
>
>I am asking you to try it out with the report that didn't provide any HTML contents, so we can see exactly why that is:
>
>
>DO (_REPORTOUTPUT) WITH 4
>* XML, not HTML
>
>WITH _oReportOutput["4"]
>
> .includeBandsWithNoObjects = .T.
> .includeFormattingInLayoutObjects = .T.
> .TargetFileName = "c:\temp\x.xml" && or whatever
>
>ENDWITH
>
>REPORT FORM ? OBJECT TYPE 4
>* use same report as before
>
>MODI FILE c:\temp\x.xml
>
>
>
>TIA,
>
>>L<
/Torgny
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform