PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

patient-ssapp v0.11.0 print CSS #91

Open joaoluis-pdm opened 2 years ago

joaoluis-pdm commented 2 years ago

Brought up by Nicolas on meeting 2022-01-25: From 02. Template 2_PharmaLedger_Volere Functional Requirement_Robert_And_Flora_Priority.xlsx:

F-2- F Patient must be able to (1) log in as a patient (2) search for trials (3) share trial information with physicians As a Patient I want to view and print trial details to show and discuss with my physician in person So That my physician can recommend the right one for me at my next doctors visit 4 MUST Need to have 1 None Contact email and details on clinical trials, clinical sites, etc Complete (RD)Not complete (SS) - printing formatting does not look correct Not implemented, for the patient High priority #1

Using the browser's print dialog, all pages after page 1 are un-printable: image

joaoluis-pdm commented 2 years ago

@lehialessandro , when you have time, can you please check if the correction https://forum.ionicframework.com/t/css-media-query-for-printing-scrollable-content/73076/15 can be applicable to this problem ?

joaoluis-pdm commented 2 years ago

The solution above did not work (blank page).

The problem could also be related to the use of an iframe, but even using Firefox right-click menu "This Frame -> Print Frame", the frame contents always appear truncated to the page's height. (Even going though all elements, and removing height, max-height, overflow CSS properties, the Print preview always shows 1 page).

joaoluis-pdm commented 2 years ago

Probably needs the development of a special “view” for every infoset that needs to be printed, and code to ask the browser to print that view (including mobile test of that feature).

Possible solution tips to be investigated:

Both require the development of an extra button (such as image ) that will allow to user to invoke the browser's print function only for a specific DOM element.

joaoluis-pdm commented 1 year ago

https://stackoverflow.com/questions/57864068/ionic4-print-media-query-for-scrollable-ion-content