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

End User sleect label type

edited January 2003 in End User
Here is a thread from April 2000 that I found useful but need the answer to
the question posed. The thread did not include a final response.

Can you let the end user pick the different label types easily?

RB 7.01 Enterprise / RB Server / Delphi 6 SP2


- - - -- Thread from 4/2000 - - - - -

Okay, that is good to know. Now, how do I use that for End-Users. I have
the
Standard Version of Report Builder. I just want them to be able to choose
the
type of label, and then print, is this possible?

Comments

  • edited January 2003
    Hi Jon Gray,

    I don't know why you think Nard's answer isn't satisfying, but I think if your users can serve a combo box I would say it is easy.
    You can test it by your own, open the enduser demo (RBuilder\Demos\3. EndUser\1. Report Explorer\EndUser.dpr) and create a new report - select the label wizard ...

    HTH,
    Chris Ueberall;
  • edited January 2003
    Thanks Chris. The demo is good but the hope was to predefine a label
    report, then preview it with a default label (Say Avery 5160 or the last
    type the user selected) and then allow the end user to select a different
    supported label type from a drop down. So the dataset, fields etc are
    already defined. They are just picking the type of label paper they have
    essentially from a printer output options box.

    Maybe this would be easier to create a dropdown with "supported label" types
    within my Delphi application and let the end user pick there. So to get a
    sheet of labels the user would pick options like...."All employees" and
    label "Avery 5160" and I could take that info and fire up the correct
    report I have already pre-defined. Although that would require a different
    report for each label... Not sure this is making sense?


  • edited January 2003
    You could register a new wizard if you would like. There is a wizard
    descendent we use in ppLabWiz.pas and the form is ppLWizDlg.pas. You can
    copy the class ppLabWiz and also the form/unit, then rename them. You have
    to make two new register calls. Register the new wizard class and then
    register your new form class. The registration calls should be done at the
    init/finalization sections of each respective unit.

    Change the color of one of the controls in the form to make sure your are
    linking in your new form at runtime.

    Then you can customize the label wizard behavior to you liking, perhaps,
    provide a list of templates that you have predefined report template for
    that label, otherwise they can create a new report for the label sheet they
    want to print the data on. We don't have a demo of this, but it should be
    doable. Let us know how it goes.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.