Normal Topic Compatibility issue: Printing in 2.0.2 (Read 1357 times)
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Compatibility issue: Printing in 2.0.2
Sep 14th, 2007 at 8:21pm
Print Post Print Post  
My report printing commands do not work anymore after upgrading to 2.0.2. The path to printing reports has obviously changed. Do I have to rewrite all my code now?

regards
Carsten
  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Compatibility issue: Printing in 2.0.2
Reply #1 - Sep 14th, 2007 at 8:32pm
Print Post Print Post  
The command tree has changed see the folowing code from my program, and you may want to check out the new "PrintAReport" command.

Var vSuccess as Int

     vSuccess = @SelectTreeItem("Gha_Main_Appl!Forms!Search/Update!Work_Request!Wk_Req_Form")
           vSuccess = @SelectTreeItem("Search Menu!Search Commands!Retrieve New Results (F10)")
     vSuccess = @SelectTreeItem("Search Update Menu!Results Commands!Reports!Work_Request!Work Request")

IF vSuccess = 0
{
     Writeln("It Failed")
}
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Compatibility issue: Printing in 2.0.2
Reply #2 - Sep 14th, 2007 at 8:41pm
Print Post Print Post  
In addition, we've given you the new PrintAReport() command which allows you to do this directly.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Re: Compatibility issue: Printing in 2.0.2
Reply #3 - Sep 14th, 2007 at 8:44pm
Print Post Print Post  
Thanks, I did try the PrintAReport command andit is of cause a nice, easy and neat solution. But it does not save me from changing my code immediately. I do unfortunately (well it is necessary for my client) use forms quite extensively  Undecided

C.
  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Compatibility issue: Printing in 2.0.2
Reply #4 - Sep 14th, 2007 at 8:56pm
Print Post Print Post  
carsten wrote on Sep 14th, 2007 at 8:44pm:
Thanks, I did try the PrintAReport command andit is of cause a nice, easy and neat solution. But it does not save me from changing my code immediately. I do unfortunately (well it is necessary for my client) use forms quite extensively  Undecided

Sorry. The location and setup of the Reports branch is one of the few things that does need a code update from 1.x to 2.0. We tried to avoid that wherever possible, but the advantages in this case were just too strong to pass up.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Re: Compatibility issue: Printing in 2.0.2
Reply #5 - Sep 14th, 2007 at 9:02pm
Print Post Print Post  
Ok, I will have to live with it then  Embarrassed

How do I get the REPORT_MODE_HTML to print without popping up the printer menue?
REPORT_MODE_PRINT_ONLY does unfortunately not give me the same printout as REPORT_MODE_HTML_PREVIEW.
  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Compatibility issue: Printing in 2.0.2
Reply #6 - Sep 14th, 2007 at 9:50pm
Print Post Print Post  
carsten wrote on Sep 14th, 2007 at 9:02pm:
Ok, I will have to live with it then  Embarrassed

How do I get the REPORT_MODE_HTML to print without popping up the printer menue?

You don't. The system does not give us an opportunity to stop it form popping the dialog up in that case.

Quote:
REPORT_MODE_PRINT_ONLY does unfortunately not give me the same printout as REPORT_MODE_HTML_PREVIEW.

It depends on the report content.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Re: Compatibility issue: Printing in 2.0.2
Reply #7 - Sep 14th, 2007 at 9:54pm
Print Post Print Post  
Oh, I see.

Is there any way of drawing a vertical line in the report?
  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Compatibility issue: Printing in 2.0.2
Reply #8 - Sep 14th, 2007 at 10:01pm
Print Post Print Post  
carsten wrote on Sep 14th, 2007 at 9:54pm:
Oh, I see.

Is there any way of drawing a vertical line in the report?


Not a pushbutton way. You can set a border size of higher than zero to draw the table grid.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Re: Compatibility issue: Printing in 2.0.2
Reply #9 - Sep 14th, 2007 at 10:07pm
Print Post Print Post  
Thanks, just what I was looking for! I should have remembered, but the age .....  Wink
  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged