Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10145 > unrolled thread
| Started by | jconradomx@gmail.com |
|---|---|
| First post | 2017-02-08 14:04 -0800 |
| Last post | 2017-02-18 08:07 -0800 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
ReportPro 2.212 questions jconradomx@gmail.com - 2017-02-08 14:04 -0800
Re: ReportPro 2.212 questions simon@abersoftware.co.uk - 2017-02-13 03:55 -0800
Re: ReportPro 2.212 questions jconradomx@gmail.com - 2017-02-15 15:11 -0800
Re: ReportPro 2.212 questions Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2017-02-16 00:24 +0100
Re: ReportPro 2.212 questions Mathias <mathias.hakansson@consultec.se> - 2017-02-15 23:47 -0800
Re: ReportPro 2.212 questions Willie Moore <williem@wmconsulting.com> - 2017-02-16 08:47 -0600
Re: ReportPro 2.212 questions Mathias <mathias.hakansson@consultec.se> - 2017-02-16 23:36 -0800
Re: ReportPro 2.212 questions jconradomx@gmail.com - 2017-02-18 08:07 -0800
| From | jconradomx@gmail.com |
|---|---|
| Date | 2017-02-08 14:04 -0800 |
| Subject | ReportPro 2.212 questions |
| Message-ID | <3cc83e68-09f4-40d4-83b4-23dcb632e365@googlegroups.com> |
Hi All, The question is: Can you leave the preview window? So that it does not close automatically when I press the print button or save the report in PDF format? I need PreviewReport save in different formats Excel or PDF or send to printer Thank you in advance
[toc] | [next] | [standalone]
| From | simon@abersoftware.co.uk |
|---|---|
| Date | 2017-02-13 03:55 -0800 |
| Message-ID | <fc9eeab2-be70-42b4-b112-1b49e8523d89@googlegroups.com> |
| In reply to | #10145 |
On Wednesday, February 8, 2017 at 10:04:22 PM UTC, jconr...@gmail.com wrote: > Hi All, > > The question is: Can you leave the preview window? So that it does not close automatically when I press the print button or save the report in PDF format? > > I need PreviewReport save in different formats Excel or PDF or send to printer > > Thank you in advance I think you can specify a MDI window for the print preview in symPPWindow and this can be of your own design (I've not tried this though)..... <oRpReport>:PrintPreview( [cJobName], [cPrint2File], [cCaption], [cMessage], [lModal], [nShowState], [lZoomed], [symPPWindow]) NIL SymPPWindow Optional parameter to specify a symbol representing a class to instantiate for use as the Print Preview window. The class specified must provide certain callback methods for ReportPro. The code for ReportPro's PrintPreview windows is provided as an example of what methods the window needs to provide. There are two Print Preview window types provided with ReportPro: #rpPrintPreviewMDI: this symbol will produce a Print Preview window that is built on an MDI child window. The owner must be an MDI shell type window. #rpPrintPreviewDLG: this symbol will produce a Print Preview window that is built on a modal or modeless dialog window.
[toc] | [prev] | [next] | [standalone]
| From | jconradomx@gmail.com |
|---|---|
| Date | 2017-02-15 15:11 -0800 |
| Message-ID | <6f5e4983-ce00-4188-8f87-d59cb5d01a43@googlegroups.com> |
| In reply to | #10145 |
Thanks for your reply, Right now I look the #rpPrintPreviewMDI for MDI child window, but is same result, close PrintPreview when I click en the print button. The truth is I have no idea if you can modify that behavior the ReporPro Regards!
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> |
|---|---|
| Date | 2017-02-16 00:24 +0100 |
| Message-ID | <qoo9acdfe0v3g100i3ce6un65li5di99s6@4ax.com> |
| In reply to | #10160 |
On Wed, 15 Feb 2017 15:11:08 -0800 (PST), jconradomx@gmail.com wrote: >The truth is I have no idea if you can modify that behavior the ReporPro You may buy the source version of RP and modify as you wish ;-) Karl Regards Karl
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2017-02-15 23:47 -0800 |
| Message-ID | <40af88d7-89ce-45b0-8564-e9eee868df91@googlegroups.com> |
| In reply to | #10160 |
Hi, the best thing about it is that you can override the window and make your own variant. If you look in the module "PtrDev_Preview DLG" in the ReportPro lib. you can see the methods that you can override. In your case you would want to override PrintBtn. It's easy to do someting extra and call super. This way you could have a boolean that decides if the window is allowed to close or not. If you override queryclose you can stop the window from closing when you don't want to. /Mathias Den torsdag 16 februari 2017 kl. 00:11:10 UTC+1 skrev jconr...@gmail.com: > Thanks for your reply, > > Right now I look the #rpPrintPreviewMDI for MDI child window, but is same result, close PrintPreview when I click en the print button. > > The truth is I have no idea if you can modify that behavior the ReporPro > > > Regards!
[toc] | [prev] | [next] | [standalone]
| From | Willie Moore <williem@wmconsulting.com> |
|---|---|
| Date | 2017-02-16 08:47 -0600 |
| Message-ID | <1742752188.508948635.402569.williem-wmconsulting.com@news.aioe.org> |
| In reply to | #10160 |
Hey, Subclassing the print preview class is NOT something that most people have done. It is in the docs. When you call printpreview, there is an extra parameter that you can pass which is a symbol to the classname that will handle print preview. You just have to make sure you call the super. Regards, Willie Grafx Development Team <jconradomx@gmail.com> wrote: > Thanks for your reply, > > Right now I look the #rpPrintPreviewMDI for MDI child window, but is same > result, close PrintPreview when I click en the print button. > > The truth is I have no idea if you can modify that behavior the ReporPro > > > Regards! >
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2017-02-16 23:36 -0800 |
| Message-ID | <b1257ebf-de2e-487f-ac44-1bc97ad1abb9@googlegroups.com> |
| In reply to | #10164 |
Hi all,
simple things can be accomplished without docs. Here's a simple override that sizes the window to full screen;
CLASS PreviewDlg INHERIT rpPrintPreviewDlg
METHOD Init(oParent,oPrinter,cCaption,lModal,ptrPlacement,nShowState,lLandScape,nZoom) CLASS PreviewDlg
SUPER:Init(oParent,oPrinter,cCaption,lModal,ptrPlacement,nShowState,lLandScape,nZoom)
self:Caption := cCaption
RETURN self
method Show() class PreviewDlg
LOCAL rectMax is _winRECT
SystemParametersInfo(SPI_GETWORKAREA,0,@rectMax,0)
self:Size := Dimension{rectMax.right,rectMax.bottom}
SetWindowPos(self:Handle(),0,0,0,0,0,SWP_NOSIZE+SWP_NOZORDER)
return super:Show()
/Mathias
Den torsdag 16 februari 2017 kl. 15:47:12 UTC+1 skrev Willie Moore:
> Hey,
>
> Subclassing the print preview class is NOT something that most people have
> done. It is in the docs. When you call printpreview, there is an extra
> parameter that you can pass which is a symbol to the classname that will
> handle print preview. You just have to make sure you call the super.
>
> Regards,
> Willie
>
> Grafx Development Team
>
> <jconradomx@gmail.com> wrote:
> > Thanks for your reply,
> >
> > Right now I look the #rpPrintPreviewMDI for MDI child window, but is same
> > result, close PrintPreview when I click en the print button.
> >
> > The truth is I have no idea if you can modify that behavior the ReporPro
> >
> >
> > Regards!
> >
[toc] | [prev] | [next] | [standalone]
| From | jconradomx@gmail.com |
|---|---|
| Date | 2017-02-18 08:07 -0800 |
| Message-ID | <e1ae1930-0ef0-478d-b6e4-ecb15598e666@googlegroups.com> |
| In reply to | #10145 |
Hi All, Thank you very much for your answers Regards,
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web