TeePreviewer

TeeChart for ActiveX, COM and ASP
Post Reply
Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

TeePreviewer

Post by Raymond » Fri Mar 13, 2009 9:18 pm

Hi,

If I have a chart with multiple pages, how do I make the previewer scroll through those pages after I pop up the previewer? Currently, it only shows the current page I view.

Thanks

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 16, 2009 4:20 pm

Hi Raymond,

I'm afraid it's not possible for now. Note that the "Print" button from TeeCommander shows the arrows you wish, but not the TeePreviewer. So I've added it to the wish list to be implemented in future releases (TV52013969).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Post by Raymond » Fri Apr 03, 2009 4:55 pm

Is it possible to send a command to the print button of the TeeChart commander?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Apr 06, 2009 8:35 am

Hi Raymond,

I'm afraid that's not possible right now. In vcl you could do the following, but in activeX TeePreviewer (TChartPreview) has no PageNavigatorClass property implemented yet.

Code: Select all

uses TeePrevi, TeeEdiGene;

procedure TForm1.Button1Click(Sender: TObject);
var prev : TChartPreview;
begin
  prev := TChartPreview.Create(Owner);
  try
    prev.PageNavigatorClass := TChartPageNavigator;
    prev.TeePreviewPanel1.Panel := Chart1;
    prev.ShowModal;
  finally
    prev.Free;
  end;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Post by Raymond » Thu Apr 16, 2009 6:12 pm

I have another concern. It appears that the previewer (The one invoked from TChar1.GetPrinter().ShowPreview()) is different from the one invoked from the TeeCommander. For one thing, when I hit Print, the previewer prints the page currently displayed while the one from TeeCommander pops up a printer dialog asking page range, page setup, etc.

Is there any reason for the difference? Is there any plan to make the previewer identical to the one from TeeCommander for future release?


Thanks,
Raymond

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Apr 17, 2009 2:50 pm

Hi Raymond,

I'm not sure to understand you. Here with the following code, the only difference between clicking the button (command1_click) and the Print button from TeeCommander seems to be the page navigation feature we discussed above.

Code: Select all

Private Sub Command1_Click()
  TeePreviewer1.Chart = TChart1
  TeePreviewer1.ShowPreview
End Sub

Private Sub Form_Load()
  TeeCommander1.Chart = TChart1
  
  TChart1.AddSeries scPoint
  TChart1.Series(0).FillSampleValues 200
  
  TChart1.Page.MaxPointsPerPage = 10
End Sub
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Post by Raymond » Fri Apr 17, 2009 2:57 pm

The Print button seems to behave a little different.

1. The one popped up through:
Private Sub Command1_Click()
TeePreviewer1.Chart = TChart1
TeePreviewer1.ShowPreview
End Sub

If I hit the print button from the resulting preview dialog, it will print immediately what I see without popping up another dialog that asks page range and what not.

2. The one popped up through TeeCommander:
If I hit the print button from the resulting preview dialog, if the chart contains multiple pages, it will popup another print dialog.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Apr 20, 2009 10:42 am

Hi Raymond,

I think I understand you. The difference between TeeCommander print button and TeePreviewer is that TeeCommander has a PageNavigator, as we discussed above, and not the TeePreviewer.

When TeePreviewer executes, it takes only the actual page while TeeCommander takes all the pages. So, when the preview has one page, the print button prints this page directly but when there is more than one, the print button, shows the user the "setup" window (Note that having a chart without pages, the TeeCommander also prints directly to unique page).

So, when the feature wished above (TV52013969) will be implemented, both TeeComander print button and TeePreviewer should work exactly in the same way.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Post by Raymond » Tue Apr 21, 2009 7:27 pm

Is there an estimation when the feature will be implemented?


Thanks

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Apr 22, 2009 7:35 am

Hi Raymond,

I can't tell you a date for now but we expect we can have a maintenance release in a few weeks, and hopefully this will be included in it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply