I'm working with the Genexus platform and I'm trying to generate a report in rtf format (I need it with images and text, not just text). I am trying using the parameter for procedure output_file()
and calling it as Http but from what I can see it is not working.
Does someone know how to solve it?
You should try to explain better which version, upgrades, and language you've been using because it can help others.
Anyway, i don't think that rtf is implemented in http protocol.
You may try to generate it as a file and do another procedure to download it.
Edit:
The output_file is used to name a file and a format for it:
Output_file() is used to name a file name and a standard for it:
Syntax
Output_File({ name | att | &var}, format);
Where:
name | att | &var
format
You may still use it, whilst set the report as not main (Property Main = 'false') This should make it generate the rtf to the file name set in the output_file rule.
You must also set the Output property to "Only to file":
Ask User The user will be asked where to send the output at execution time. This value only applies to Windows environments. This is the default value.
Only to File The output is sent directly to a file. By default, the generated file has GXRPTn.GXR name (where n is a number starting at 0 and increasing when other open documents exist), except in the case that other name and/or format has been specified using the Output_File rule.
Only to Printer The output is sent directly to the printer. (See Output Device Location Property below). Only to Screen The output is sent directly to the screen.