[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
function after klick  XML
Forum Index -> Development
Author Message
gseijo

Active

Joined: 29/09/2020 14:14:26
Messages: 21
Offline

Hello Björn,

I have created a project where a PDF file is printed when a button is pressed, but I want the program to ask me how many pages I want to print immediately after pressing it.
Is it possible somehow?

Greets
Gori
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi Gori,

how is the printing done - using the PDFPRINTER component, or do you have some own printing mechanism?

Regards, Björn

Björn Müller, CaptainCasa GmbH
gseijo

Active

Joined: 29/09/2020 14:14:26
Messages: 21
Offline

yes, using the PDFPRINTER component.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hmm,

isn't there a print dialog coming up, in which you select printer, number of pages, etc. ?

Regards, Björn

Björn Müller, CaptainCasa GmbH
gseijo

Active

Joined: 29/09/2020 14:14:26
Messages: 21
Offline

sorry sorry sorry..
i use a own print mechanism
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...no problem! ;-)

Then you may just show some own CC-popup allowing to input the pages before sending the PDF to the printing function.

With own CC-popup I mean:

1. create a dialog with page bean
2. open this dialog from the dialog that you want to start the printing from. Use inherited function: openModalPopup(IPageBean bean, titel, width, height, ...) to start it, and do the invoking of the printing through the popup.

Is this the response that helps you...?

Regards, Björn

Björn Müller, CaptainCasa GmbH
gseijo

Active

Joined: 29/09/2020 14:14:26
Messages: 21
Offline

Hello Björn,

thnxx for your reply.
do you have an example in the demo where i can watch it?

Greets
Gori
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

please check...

1. Demo Workplace (http://www.captaincasademo.com): General => Arranging Content => Popup Dialogs => e.g. Pass Values into Popup, and also other popup demos)

2. Developer's Guide documentation: http://www.captaincasa.com/docu/eclnt_risc_developersguide/all.html#popupmanagement

Hope this helps ;-).

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team