TeePreviewer
TeePreviewer
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
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
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).
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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.
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.
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |