Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 20 Apr 2024, 12:28

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 08 Feb 2017, 08:32 
Offline

Joined: 26 Jan 2016, 09:46
Posts: 56
Good morning,

I asked me if we can preview/print multiple pages with PrintService ?
For example : I want to preview/print PlannerVertDayslineViewEh (TimeRange := dlrMonthEh) for 2017 and I would like to have one page per month (page 1 : January, page 2 : February, etc…)
Is it possible ?

Moreover I would like to retrieve the date when I click on a cell As on the screenshot (blue cell)

Also, I would like to export my planner in PDF (without going through preview).

Thank you in advance,

ISOAR


Attachments:
Sans titre.png
Sans titre.png [ 36.03 KiB | Viewed 1909 times ]
Top
 Profile  
 
PostPosted: 21 Feb 2017, 10:43 
Offline

Joined: 26 Jan 2016, 09:46
Posts: 56
Good morning,

Do you have an idea for
1) Print multiple pages with 1 month (or 1 week) per page (PlannerVertDayslineViewEh , PlannerHorzDayslineViewEh, ...)
2) Get the date of the selected cell? (I manage to get it but this is very complicated)
3) Export planner in PDF directly directly by programming

Thank you

ISOAR


Top
 Profile  
 
PostPosted: 25 Feb 2017, 01:40 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Quote:
1) Print multiple pages with 1 month (or 1 week) per page (PlannerVertDayslineViewEh , PlannerHorzDayslineViewEh, ...)


Unfortunately the current printing functionality does not support such fine tuning.
May be you can explore source codes of TPlannerControlPrintServiceEh and write your version of printing to support it.

Quote:
2) Get the date of the selected cell? (I manage to get it but this is very complicated)


You can use next code to get date of the current selected cell.

Code:
type
  TCustomPlannerViewEhCrack = class(TCustomPlannerViewEh);

procedure TfrFrameOne.Button2Click(Sender: TObject);
var
  CellDate: TDateTime;
  PlnView: TCustomPlannerViewEhCrack;
begin
  PlnView := TCustomPlannerViewEhCrack(PlannerControlEh1.ActivePlannerView);
  CellDate := PlnView.CellToDateTime(PlannerControlEh1.ActivePlannerView.Col, PlannerControlEh1.ActivePlannerView.Row);
  ShowMessage(DateTimeToStr(CellDate));
end;


Quote:
3) Export planner in PDF directly directly by programming


EhLib and VCL doesn't have objects to export to PDF.
May you can use special type of Windows virtual printers that export all printing stuff to the pdf files.

_________________
Best regards
Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group