Printing Problems in 2.2

HI Again Guys:

Hopefully these are taken as “real” problems of merit.

I am running 2.2 and testing a database on both Mac and Windows Platforms.

I created a Form with a report heading with two fields. Simple listing. Approximately 3,000 records. I show this in List View, no problem.

I do a Print Preview, no problem.

Here’s my problems:

Mac: OSX Tiger G5,
I attempt to adjust the Page Setup on the Mac and when dismissing the dialog, the Preview shows nothing but blank pages.

Generate the Preview again and don’t mess with Page Setup.
Attempt to Print to a PDF. First attempt, I get one page (there are 126)

Second attempt, I get 27 pages.

Third attempt 27 pages. At no time to I get all 126 pages.

OK, Switch To Windows XP Pro:
Preview No problem.
Page Setup No Problem
First attempt to Print: Error Unable to Print: Details -1
Second attempt, Servoy Bombs.

Restart Servoy, go to Preview
Third Attempt: Error Unable to Print: Details -1
Fourth Attempt: Prints the PDF to Acrobat all 126 Pages

Any ideas on how to make this run reliably? Could it be a memory issue? If so, is there a way to increase the memory available to the Servoy CLient, etc?

Thanks,
Lee Snover

My guess is that you have an issue with you foundset.

Do you do a printpreview via the controller? If so you should load the foundset onto the page first.

IT2BE:
My guess is that you have an issue with you foundset.

Do you do a printpreview via the controller? If so you should load the foundset onto the page first.

I don’t know what you mean. My found set is all records. There are no calculations, no aggregates. Just three fields in the entire table including the ID. One Number, One Text. About as basic as you can get. What kind of “issues” could I potentially have?

I appreciate any help folks. If I’m coming across testy or demanding at all, I am honestly not intending to. I am working with my supervisor to do an evaluation of very basic things with Servoy, and running into small problems on just about every turn. I may be ignorant of some basics that are causing me these problems. But honestly, I’m dealing with very simple constructs at the moment.

We deal with relatively large volumes of data, and the program has to function. If I need to implement strategies, that’s OK, I’m willing to learn and be somewhat adaptive.

Thank you for your consideration.

Sincerely,
Lee

Lee, I understand what you say but with the little information you give I/We can only give you pointers to what can cause this issue.

Servoy is very powerfull, but with that power there is also much you can do wrong. I advise you to take a look at the crm demo for example. Once you get to know Servoy you will like it as much as I do. I am sure…

I still think there could be something wrong with your foundset and you can test it. When you navigate from one form to you printform you can code the following first in you navigation method: formwhereyougoto.controller.loadAllRecords(). This way you are sure you loaded all records. Now, when you still have the issue there is something else wrong :shock: and you might send out your solution or describe more thourough what you do. BTW, make sure you don’t do anything else on showing the form. For testing purposes it can not have an onshow, onrecordselect method and must not be in a tabpanel.

IT2BE:
Lee, I understand what you say but with the little information you give I/We can only give you pointers to what can cause this issue.

Servoy is very powerfull, but with that power there is also much you can do wrong. I advise you to take a look at the crm demo for example. Once you get to know Servoy you will like it as much as I do. I am sure…

I still think there could be something wrong with your foundset and you can test it. When you navigate from one form to you printform you can code the following first in you navigation method: formwhereyougoto.controller.loadAllRecords(). This way you are sure you loaded all records. Now, when you still have the issue there is something else wrong :shock: and you might send out your solution or describe more thourough what you do. BTW, make sure you don’t do anything else on showing the form. For testing purposes it can not have an onshow, onrecordselect method and must not be in a tabpanel.

Marcel:

There is only one form, not a special print form. I show it in list view. There are no special methods being run, it is a “bone stock” servoy form with a header section with the three field labels in it, and a body section with three fields in it.

To print, I hit the stock Preview button and then print from the stock Preview window. It prints to preview just fine.

My guess is it may be a memory issue. Is there a way to increase the amoutn of memory available to the client? Or is this a self adjusting property? Everything I’m doing is BONE STOCK right now, with the exception that I’m using an Oracle database for all my data, including the repository.

I’m sure I will figure this stuff out. Despite my propblems and complaints here, it is growing on me. I only tend to ask questions and make posts when I’m having problems at the moment. Someday when I’m more proficient, I may be able to lend more of a hand and make positive comments. My biggest problems are just general reliability issues with built in functions, lack of support for views, and lack of multiple windows. The reliability issues could very well be related to my large record sets and not making appropriate tweaks to memory settings, etc. that I am not yet familiar with.

I tend to be very intense while learning and testing, but I will eventually ease up, and either contribute or disappear if I can’t find a way to make it work for us. It comes in spurts, because of my work schedule. I’ve been playing wiht Servoy on and off since before FM DEVCON last year, but have probably only gotten a total of a weeks or two of hands on time with it. Considering I was able to get the server and a test app. up in less then two days with connections to Oracle, I think I’m not doing too bad. That included loading up over a million records and designing a basic app. But I have a LONG way to go.

Thank you for your time and assistance.

Sincerely,
Lee

Lee,

I REALLY understand what you say. But you can still do a controller.loadAllRecords() on you onShow method. Please do it to exclude anything else, just for trial and error purposes, will take you 2 minutes max.

The answer to your memory issue is yes, you can do this in your server pages (browser: http://localhost:8080/servoy-admin under server settings…

IT2BE:
Lee,

I REALLY understand what you say. But you can still do a controller.loadAllRecords() on you onShow method. Please do it to exclude anything else, just for trial and error purposes, will take you 2 minutes max.

The answer to your memory issue is yes, you can do this in your server pages (browser: http://localhost:8080/servoy-admin under server settings…

Marcel:

The Load All records happens when you come into the window automatically, correct? So what’s the purpose of this? Also, if I put this in specifically, will it over-ride the standard Load all method? I would not want Servoy to load the records twice.

As far as the memory settings, do the settings on the server affect what the client get’s allocated, or just what the server has allocated? I believe it’s a client issue.

Thanks again for your help.

Regards,
Lee

Lee,

The setting are overridden and the purpose is just to be sure nothing else goes wrong anywhere else. Just to be sure.

These are the labels, they speak for themselves I guess:

Memory/Performance Settings
servoy.maxClientHeap

IT2BE:
Lee,

The setting are overridden and the purpose is just to be sure nothing else goes wrong anywhere else. Just to be sure.

These are the labels, they speak for themselves I guess:

Memory/Performance Settings
servoy.maxClientHeap

Thanks again,

I bumped the memory up to 128MB will see if that helps.

I’ll try the load and see if that helps. The Mac seems to be the biggest proglem, so my guess it’s a memory thing.

Along those lines, is there a place where I can adjust the memory allocated to Developer?

Regards,
Lee

yup, open open the servoy.app package. You’ll find a setting there…

IT2BE:
yup, open open the servoy.app package. You’ll find a setting there…

I don’t see a file called servoy.app ?

I’m on windows server here if that helps.

Thanks,
Lee Snover

You were talking about the mac… There it is Servoy.app and you don’t see the extension…

IT2BE:
You were talking about the mac… There it is Servoy.app and you don’t see the extension…

Marcel:

Actually, I’m talking about both platforms. Sorry, I thought the file structures where identical. I run Developer under windows, and my boss is running it on the Mac. I’m experimenting with both the Mac and Windows clients.

I’ll have to check his machine for the file.

Thanks!
Lee

leesnover:

IT2BE:
You were talking about the mac… There it is Servoy.app and you don’t see the extension…

Marcel:

Actually, I’m talking about both platforms. Sorry, I thought the file structures where identical. I run Developer under windows, and my boss is running it on the Mac. I’m experimenting with both the Mac and Windows clients.

I’ll have to check his machine for the file.

Thanks!
Lee

I’ve upped the memory allocated to the clients to 128MB, and tried adding a method to FindAll on the initial Form load. I still have wierd print problems.

When I try to print the first time, I get a error , details -1, after the first attempt it works.

Any other ideas?

Thanks,
Lee Snover

Lee, I think it is time to share your solution (if you want) via a private post so I can see what happens. It is all very weird and doesn’t ring ANY bell to me…

IT2BE:
Lee, I think it is time to share your solution (if you want) via a private post so I can see what happens. It is all very weird and doesn’t ring ANY bell to me…

Marcel:

Thanks for the offer. What would be the best way to do this? It’s a very simple solution. Can i just send you an export of the application? I’d be happy to let you log into the system as a client, but that would probably not help much.

Regards,
Lee

Glad to be of help!

The last option won’t do it. I want to look ‘behind the scenes’.

Just send me the solution with the export example data option checked (and i18n if you use that) and I will get back to you asap…