SalReportTableView

Discussion forum about all things Report Builder (all versions).
tommyarm
Sweden
Posts: 109
Joined: 09 Apr 2020, 09:23
Location: Linköping, Sweden

SalReportTableView

Post by tommyarm » 05 Jan 2010, 09:28

Hi!

In my application it's possible to print/preview child tables and table windows. I use the functions SalReportTableCreate and SalReportTableView. Because of TD 5.2 preview problems I don't use my own preview window and calls SalReportTableView with hWndNULL as display handle. When I do this on my own computer, Windows XP, all works fine. My customer has Windows Vista and he only gets an empty preview window.

Is this a known problem and is there any solution for it?

Best regards,
Tommy

User avatar
Charlie
Canada
Posts: 649
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Re: SalReportTableView

Post by Charlie » 05 Jan 2010, 13:16

Hello Tommy,

We were having the same problem, and found that specifying the full path to the report template (in the call to SalReport* function) fixed things. Give that a try and let us know if that works for you too.

Cheers.

tommyarm
Sweden
Posts: 109
Joined: 09 Apr 2020, 09:23
Location: Linköping, Sweden

Re: SalReportTableView

Post by tommyarm » 05 Jan 2010, 14:07

Hi!

Thanks for your suggestion! However, I use a full path as you can see in the attached examples.

I was wrong about the empty preview window in Vista. My Citrix connection to the customer is thru a Win2K-machine, so the behaviour is as follows:

Windows XP: OK (see screenshot)
Windows 2000: Empty preview window (see screenshot)
Windows Vista: Nothing happens!

With TD 5.1 SP6, with my own defined preview window, it works just fine in all the environments!

Best regards,
Tommy
You do not have the required permissions to view the files attached to this post.

User avatar
Charlie
Canada
Posts: 649
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Re: SalReportTableView

Post by Charlie » 05 Jan 2010, 19:30

Hi Tommy,

Still feels like a problem with the location of the report template.

Just to rule that out, could you give the following a try: put the report template in some folder on C: (say C:\TEST, for example), modify the app to look for the report template there, and see what happens.

Cheers.

tommyarm
Sweden
Posts: 109
Joined: 09 Apr 2020, 09:23
Location: Linköping, Sweden

Re: SalReportTableView

Post by tommyarm » 07 Jan 2010, 11:01

Hi!

You are right! When I tried to put the report template in the user's home folder it worked. The real problem was that the privilages wasn't set correctly for the folder I was using.

If you use SalReportTableCreate and the folder for the template doesn't exist you get the error message "Unable to create report template", but if the folder exists but you don't have permissions to write in it nothing happens. Something for Unify to correct?

Thanks for your help!

Tommy

User avatar
Charlie
Canada
Posts: 649
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Re: SalReportTableView

Post by Charlie » 07 Jan 2010, 13:00

Hello Tommy,

Glad to hear you found the problem and got things working.

Cheers and best regards.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests