Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
8
Erster Beitrag:
vor 2 Jahren, 8 Monaten
Letzter Beitrag:
vor 2 Jahren, 8 Monaten
Beteiligte Autoren:
DarrenF, StefanoG, Allard, Al, DannHCS, Paulo Oliveira, Yaku

[WD19]Creation of Reports

Startbeitrag von Yaku am 29.09.2015 10:14

Hi,
I'm trying to create a receipt using the report editor of WinDev, but I'm having lots of problems doing that (i.e. passing values of variables from the project to the report itself).
Is the report editor a bit "quirky", or is it just me who's mentally challenged?

Antworten:

In the help you can find all the information for Report with parameters

http://doc.windev.com/en-US/?1011008

von Paulo Oliveira - am 29.09.2015 10:45
Hi Yaku,

Don't try to over-think this; it basically works the same as passing parameters elsewhere in WinDev.

See Paulo's link...

von DarrenF - am 29.09.2015 10:54
Hi Yaku!

What is the problem about passing parameters to the report?

I think anyway that the report is "quirky", as you said...
I always have huge problems in setting up the reports, especially with the "table" control:
when I insert the control in the form, it becomes a list of controls (EDIT & ITEMS) instead of being a table.

I've always read good reviews about the WD Reports Editor, but personally it gives me head ache!

Dann

von DannHCS - am 29.09.2015 13:39
You insert a Table control on a report? :confused:

von DarrenF - am 29.09.2015 13:46
Hello Yaku

The report write is quite solid and only slightly quirky

Reports with embedded tables are a nightmare to change and quite restrictive so I stopped using them years ago. I get the best results by assembling the data I want to print into a memory table and then use that as the report source, other people use a query as the data source.

In terms of introducing variables into the report, you can create local variables in the window that initiates the report and then they will be available to it as windowname.variablename, or you can pass variables as parameters in the report or have global variables .e.g GReportHeading1, 2, 3, etc

Regards
Al

von Al - am 29.09.2015 14:44
I think Yaku is talking about "graphics issues" working with graphic tables in reports.

I tried to use tables in reports too, I mean, if you have to draw the body of an invoice you need to design a table on the sheet having 3-5 colums (id, item descritpion, price, VAT..)

When I try to insert a table it becomes a set of edit controls soon, the report editor slices the table into pieces and it's a mess to manage them on the sheet.

Do you mean that, Yaku?

von StefanoG - am 29.09.2015 17:06
Hmm,

I have had not these kind of problems? I have a big issue with reports that are mainaineble by the user. Sometimes the report doesnot regognize that it used or something. In that modus only internal queries do work

So I have in my planning to change the reports. Iam going to base them on a file that has all the right values for the report, use this as an internal querie. Then use can select form this file. And the report always works.

Passing parameters is easy

In the window
ipreview()

iprintreport( bl , bla, bla , param , param2, param3 )

In the report
Procedure reportname ( param is int , parmam2 is int, param3 is int)

That is it

regards
allard

von Allard - am 29.09.2015 18:00
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.