My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
   
SUBSCRIPTION STATUS
If you are a subscriber to this publication, sign-in to access locked articles. To subscribe or renew go to www.AdvisorStore.com.
Go to Article
Advanced Search 

ADVISOR TIPS

Protect Your Reports With Microsoft Visual FoxPro 9

Learn how this exciting new feature can help you lock down VFP reports.

By Andrew MacNeill, FoxPro Advisor technical editor


New in Microsoft Visual FoxPro (VFP) 9 Report Designer is the concept of protection. Protection makes it easier to distribute reports without worrying about exposing too much to users. Figure 1 shows the basic Protection tab for a field object on a report.
Figure 1: Protect me! -- Protection lets you ensure that a user can't modify certain aspects of a report.

With Protection, you can restrict individual objects so users can move and resize them, but can't remove them from the report (this is useful for copyright notices or application names). You can even prevent objects from showing in the Report Designer when the user modifies the report, but make them appear in the final output of the report, such as Draft or Final version captions.

Add the new PROTECTED keyword to the MODIFY REPORT command to display the report in protected mode:

MODIFY REPORT PROTECTED

Without the PROTECTED keyword, the designer appears as it always has. If a table uses cryptic field names, set the design-time caption to a friendlier representation. When viewing a protected report, the user sees the friendly name for the object instead of the table expression. This is a great way to let users modify reports without affecting critical information. You can set common protection properties on multiple objects, making it easy to set up complex reports.

Adding objects is also easier. As soon as a control is placed on a report, VFP displays the associated dialog, prompting for caption, expression, and other properties.

This tip comes from "A Tale of Two Report Designers" in FOXPRO ADVISOR magazine and shows just one example of the improvements made to the Report Designer in version 9 of VFP. In the full article, Andrew MacNeil shows you everything you need to know about the new Report Designer's output changes, "under the hood" improvements, ways for managing report options, and more. Pro-level subscribers can read the article online at http://Advisor.com/doc/14142.


Andrew MacNeillTechnical Editor Andrew MacNeill is president of AKSEL in Kanata, Ontario, Canada. AKSEL specializes in developer and end-user development and training for Visual FoxPro and Web-based solutions. http://www.aksel.com andrew@aksel.com

Printer-friendly
page layout

Protect Your Reports With Microsoft Visual FoxPro 9

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    ARTICLE INFO

    Web Edition: 2004 Week 32, Doc #14483

    FREE ACCESS FREE ACCESS

    Keyword Tags: Application Development, Database, Database Development, Development, Microsoft, Microsoft Visual FoxPro, Reporting, Security, Software Development

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2010 Advisor Media, LLC. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, LLC in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    Hosted by Prominic.NET Website powered by
    LOTUS SOFTWARE
    oa MACNA103 posted 2004-8-2 mod 03/08/2010 03:11:20 AM ztdbms/ztdbms
    domino-144.advisor.com my.advisor.com 03/10/2010 10:13:57 AM