Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 7 Monaten
Letzter Beitrag:
vor 4 Monaten, 3 Wochen
Beteiligte Autoren:
Erik Schwarz, Stefan Bentvelsen

[WD19] Formatting problem in Scheduler

Startbeitrag von Erik Schwarz am 20.03.2017 10:28

Hi,

1 - I am Setting the Background Color (without shades etc) in the appointment, which works fine, but the title area always has a gradiation Color and I can not get rid of it. Tried all things in the style part of the control. Just want to have a simple Color all over in the appointment area.

2 - When printing the schedule with the built in function(popup menu), it is scaled to about 11 lines of resources (height of each line is printed really large). Is there a way to have control over that to print more lines on a sheet of paper?

Thanks for any advice

Erik

Antworten:

Hi Erik,

you can use a custom internal-window for your appointments in a planner control (like I do).
Then you can code it in the custom internal window (also like I do). I.e. something like:

if gGclAppointment.Note > "" then
STC_APTTitle..BrushColor = val(gGclAppointment.Note)
END

When filling the planner control you can use an appointment variable and set the background color like:

MyAppointmentVar..Note = pastelRed

von Stefan Bentvelsen - am 21.03.2017 18:46

Re: [WD19] Formatting problem in Scheduler and now printing

Hi Stefan,

well I found all that stuff and it works like I want.
Thanks for the hints.

Now I want to print this schedule. The AAF print does exactly what I want, just the lines are very big in height, showing just a few resources.
Is there a possibility to modify? Did not find something.

When creating a new Scheduler Report based on my schedule, it does not print any Details and more important, I found nowhere how to set the Report, so it prints as many pages horizontally (depending on the period to print). The AAF does this perfectly.
Any ideas?

Regards, Erik

von Erik Schwarz - am 29.05.2017 10:45

Re: [WD19] Formatting problem in Scheduler and now printing

Hi,

printing a schedule is not an Option. The few things to configure are still not enough,

I didn't find something in the help, but sometimes there hidden useful functions within that 999 new Features multiplied with x Versions.

Is there a possibility to make a screenshot of a Windev window by programming as a Picture (e.g. in jpg), which then could easily be printed inside a Standard Report.

Greetings

Erik

von Erik Schwarz - am 29.05.2017 19:58

[Solved so far]

Found what I searched for:

dCopyWindowImage()
dSaveImageJPEG()

So I can make screenshots from the schedule and print it easily.

Erik

von Erik Schwarz - am 29.05.2017 20:21
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.