Printing troubles

see attachment…
The calendar in the top left position is a tabpanel. All the elements of the calendar are labels, the dates are filled through a method.

In the top middle you see, year, month, weeknumbers and the first day of the week. These are all labels who are put in place through a method and filled with text through a method. There are no jpg or gif in this layout.
Only the bars are html with a gif.

Why is the print-preview (I also printed on paper) not the same.
Most of elements (top-middle) are shown as if I was in Designer mode.

Servoy Developer
Version R2 2.0.3-build 276
Java version 1.4.2_04-b05 (Windows 2000)

Guys…
I really need some help with this… :?

Not even the Servoy Gods??

just a suggestion for the bars:
if you are using HTML for these, you could try to hold out space with a white pixel .gif that you stretch using width attribute in your HTML to make sure the cell width does not collapse.

Thx for the suggestion.
I don’t use cells (or tables) for the bars. it consists of 2 images, 1 transparent and 1 colored. They both have a width…and the total width of the 2 images have a maximum.
It saves html code not using tables and stuff.

It goes like this:

<html><head></head><body><IMG SRC='media:///pixel_1x1_trans.gif' WIDTH=9 HEIGHT=12><IMG SRC='media:///redbar.gif' WIDTH=423 HEIGHT=12></body></html>

Anyone has suggestions how to make the redbar.gif clickable…could it be done with href connection to a method?

Hi tweetie,
you can’t set elements (with values or colors) and than print them
It simply does not work. You have to do this by rendering HTML
(Ask Stef, he has made a similiar thing)

Try also, to move a field (by method) to another location
and than make a print-preview, the field is back in it’s original position.

This is an feauture I asked a year ago, but I don’t know where it is on the wishlist

Well…that’s kinda annoying.
What happened to the WYSIWYG concept???
Or in this case the WYSIWYP …

I was under the impression during a seminar, that this kinda stuff was possible. I especially explained to Jan Aleman once about a print-form beeing adjusted to certain values.
I explained this correspondence example:

  • you make a solution for more than 2 diffrent clients
  • each one has diffrent writing paper
  • in a pref file you could set where the blocks of text would go for a letter (for example).

This was possible according to Jan. Now one could make a standard-application for more than 1 client. I was a happy happy man at the time.

And now this cant be done… :shock:
This also means that I cant make a standard solution without having to change correspondence or invoice forms for each client.

Besides…I once used HTML to create this. But HTML doesn’t give me the amount of control of the elements I need. For example: the holidays (green vertical bars) cannot be done in HTML. Also html can be sometimes unpredictable (especially in tables). Besides the html-parser of sun…aint all that either.

I know, I know,

when I saw the feature of moving objects around the screen, I was thrilled too!
But than (a year ago) I build my first solution, and tried it out.
Not working in print-preview :cry:

Thats why I asked for this!

http://forum.servoy.com/viewtopic.php?t … ght=moving

HJK:
you can’t set elements (with values or colors) and than print them
It simply does not work.

I dont get 1 thing though. Why does the calendar part gets printed??
The calendar is a collection of labels, filled with dates through a method, and colored though a method (blue is the current day, green is a holiday)

The calendar is a Tabpanel.
If I get the form of the calendar and I a preview, it doesn’t work. But in a tab-panel it does work :shock:

I put the whole thing in a tab-panel…and see what the result :shock:
I’m getting confused over here…

Yes, I’m sorry :oops: . you can set labels, but you can’t move them!

that your example works in a tab-panel is really strange.
I think the Dev-guys must see this.

send an solution to support@servoy.com
so they can reproduce this!

The labels with 2004, 2005, april,mei, juni…etc…
are first moved into place with a method, and then resized according to the amount of days, and then filled with text.

tweetie:
The labels with 2004, 2005, april,mei, juni…etc…
are first moved into place with a method, and then resized according to the amount of days, and then filled with text.

:shock: Really strange, that it works in tab-panel!

tweetie:
Well…that’s kinda annoying.
What happened to the WYSIWYG concept???

nothing, the wysiwig concept is in tact

tweetie:
Or in this case the WYSIWYP …

Same, what you see in print preview is printed.

tweetie:
I was under the impression during a seminar, that this kinda stuff was possible. I especially explained to Jan Aleman once about a print-form beeing adjusted to certain values.
I explained this correspondence example:

  • you make a solution for more than 2 diffrent clients
  • each one has diffrent writing paper
  • in a pref file you could set where the blocks of text would go for a letter (for example).

This was possible according to Jan. Now one could make a standard-application for more than 1 client. I was a happy happy man at the time.

I clearly stated in that seminar that you would use html or rtf at this point in time to achieve that.
The good news is that it will be supported in future versions.

tweetie:
Anyone has suggestions how to make the redbar.gif clickable…could it be done with href connection to a method?

Yes, try something like:

<html><head></head><body><IMG SRC='media:///pixel_1x1_trans.gif' WIDTH=9 HEIGHT=12><a href="javascript:yourmethodname(' + yourparameterhere + ')"><IMG SRC='media:///redbar.gif' WIDTH=423 HEIGHT=12></a></body></html>

You may need to tidy up the "s and 's to build the string correctly.

jaleman:

tweetie:
Well…that’s kinda annoying.
What happened to the WYSIWYG concept???

nothing, the wysiwig concept is in tact

I’m sorry but i dont get what i see…
I see lovely made year,month and weekly thingies…
And i get something else. :roll:

jaleman:

tweetie:
I was under the impression during a seminar, that this kinda stuff was possible. I especially explained to Jan Aleman once about a print-form beeing adjusted to certain values.
I explained this correspondence example:

  • you make a solution for more than 2 diffrent clients
  • each one has diffrent writing paper
  • in a pref file you could set where the blocks of text would go for a letter (for example).

This was possible according to Jan. Now one could make a standard-application for more than 1 client. I was a happy happy man at the time.

I clearly stated in that seminar that you would use html or rtf at this point in time to achieve that.
The good news is that it will be supported in future versions.

This was a correspondence issue (sending letters from Servoy), it had nothing to do with html. And it is good news, that in the future it will supported in the future.

jaleman:

tweetie:
Or in this case the WYSIWYP …

Same, what you see in print preview is printed.

Well I guess you are right about this one :lol:

But can anyone from the Servoy team explain, why it seems to work in a tabpanel (i didn’t test on a Mac yet)?? Becoz if it works in a tabpanel…that’s just fine with me.

tweetie:
The labels with 2004, 2005, april,mei, juni…etc…
are first moved into place with a method, and then resized according to the amount of days, and then filled with text.

Placing elements that are moved, resized and filled via a method in a tabpanel are also printed on a Apple.

The current printing does always create new panels from the repository definitions (to prevent empty screens when printing in background, support printsliding and remove anchors), In the past printing a tabpanel did not work at all, with some modifications it now works (with limitations!) but is always print with existing panels (as you found out).
This behaviour can indeed be used to print javascript modified panels as long we do not support this by default, there is howerver a downside; printing existing panels KEEP the anchor layout and do NOT support printsliding!

Any news on this topic?

I’m trying to automate the position of adres labels on print forms.

TIA
Stef

Its planned for Servoy 2.5

Servoy 2.5 will not exist, in Servoy 3.0 (alfa11) printing JavaScript changes is working