Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Maximize Print Preview Form

edited May 2002 in General
How can I maximize the print preview form?

I got AVError when...

procedure TForm1.PrintIt
begin
ppReport1.PreviewForm.WindowState:= wsMaximized; <== AVError
ppReport1.PrintReport;
end;

TIA
Hott

Comments

  • edited May 2002
    Hi Hott,

    Sure, because PreviewForm is nil at this time.
    see tech-tip 'Controlling the Built-in Previewer' in section
    'Formats and Devices (Report Output)'. If you are using Templates you should
    read the tips from that section too, regarding the re-assigning of events.

    regards,
    Chris Ueberall;

  • edited May 2002
    Hott,

    maximize your window in the onPreviewFormCreate of the report component
    cu
    marc

  • edited May 2002
    Thanks Chris
    Actually I don't use PreviewForm, I just make use of ppReport1.
    When I issue
    ppReport1.PrintReport;
    It comes out the PreviewForm, that what I expected, simple,
    but the 'PreviewForm' is in wsNormal state,
    How can I 'Maximize' that particular 'PreviewForm'?
    Please advice

    TIA

    Hott.



  • edited May 2002
    Hi Hott,

    Did you read the mentioned tech-tips? I guess NO.

    regards,
    Chris Ueberall;

  • edited May 2002
    > Did you read the mentioned tech-tips? I guess NO.

    I DO SIR!!!

    Don't presume all people post message here, when they can't accomplish some
    task! Simple enough that's are fullish enough to do. Obviously they looking
    around for answer until they can't get it. DO YOU think by clicking the
    dailup connecter-> click connect, then enter user name password... Wait for
    the connection.... GREAT connectet, then click on the Outlook Express ->
    View -> Goto... News... Click digital-metaphors.public.reportbuilder.general
    then look for their post. is easier the reading the manual somewhere else?
    Especially when follow-up post? I know you guys are busy supporting the
    'whole world'. If keep asking people to read 'here and there', what the hack
    this newsgroup for? And you call yourself as from TeamDM by keep asking
    people to READ here and there. When people follow up the same thread for the
    second time, they propably dont understand the tips and need further advice.
    Why can't you just be "kind" to explain a little bit more in the SECOND
    FOLLOWUP. Why make such presumption? Why let poeples follow up messages till
    this thread(you are reading now and probably hard-feeling) and feel
    disappointed instead of feeling proud of using RBuilder's News Groups.

    SORRY FOR WASTING YOUR TIME READ THIS!

    Regards
    Hott
  • edited May 2002
    Got it, Thanks Marc.

  • edited May 2002
    Hott,
    you're welcome
    enjoy RB!
    cu
    marc

  • edited May 2002
    Hi Hott,

    excuse my asking, but from your last message I couldn't see any relation to
    my given hint.
    If you had a problem in using the tech-tip or to implement it the right way
    you should be so specific and tell us what you have done and was going
    wrong. But you simply recalled the question, therefore I asked you if gave
    it a chance.
    One thing I should clarify, 'TeamDM' means not that I am related in any way
    to digital-metaphors! I am a ReportBuilder just like you, and trying to help
    other users with their problem in using it.
    If you don't like my answers or didn't found them helpful, no problem, you
    could easily ignore them, but I really do my very best to help you ond
    others. I'm not 'hard-feeling', because I know it is a simple
    misunderstanding.

    Let me try it a second time.


    procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
    begin

    ppReport1.PreviewForm.WindowState := wsMaximized;
    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;

    end;





    I guess, you had problems in using the right event, you have to use the
    'OnPreviewFormCreate' of your report component.
    Once you have done it, it is linked to the current report template you are
    using (hardcoded via dfm). This is no problem as long as you don't load
    another report template, because you have now to relink all events after
    loading. Did you have problems in relinking the events?

    regards,
    Chris Ueberall;

  • edited May 2002
    > procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);

    Thank Chris, I've got it.

    Cheers
    Hott
This discussion has been closed.