Page 1 of 1
TeePreviewer
Posted: Fri Mar 13, 2009 9:18 pm
by 15051059
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
Posted: Mon Mar 16, 2009 4:20 pm
by yeray
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).
Posted: Fri Apr 03, 2009 4:55 pm
by 15051059
Is it possible to send a command to the print button of the TeeChart commander?
Posted: Mon Apr 06, 2009 8:35 am
by yeray
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;
Posted: Thu Apr 16, 2009 6:12 pm
by 15051059
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
Posted: Fri Apr 17, 2009 2:50 pm
by yeray
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
Posted: Fri Apr 17, 2009 2:57 pm
by 15051059
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.
Posted: Mon Apr 20, 2009 10:42 am
by yeray
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.
Posted: Tue Apr 21, 2009 7:27 pm
by 15051059
Is there an estimation when the feature will be implemented?
Thanks
Posted: Wed Apr 22, 2009 7:35 am
by yeray
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.