Report Defaults.

Ok I am New to L&L. Have the license for a long time but never had the time to work with it.

I use dataflex as development platform and worked on my own frame work using the base functionality provided by the class delivered by List&Label.

Got mostly working in the way how I want it.

So spend the last few days on getting to know and learn the designed. But missing into some to me simplistic things. Maybe I missed it in the documentation.

  • How do I set default the defaults (like fonts, colors and others) permanently for each new new report. I cannot open a saved report because the database I passed will not work.
  • Why are fields (in a grid) which numbers are by default left aligned.
  • L&L does give each cell in a grid the same length. Ok, I do not have to pass on the length of the field but would make life a lot easier.
  • I prefer cm and mm and not the inches on the rulers

No problem learning something new. Interesting so maybe more question will come.

Peter

Hello,

You can set some defaults programmatically, for example by using “LL_OPTION_DEFDEFFONT". Left alignment is standard, but you can always select multiple fields and adjust the alignment to your needs.

If you’re having issues with column widths, this blog post might help: Autosize for Column Widths | Reporting Blog List & Label. Concerning the unit system - you can set it via “LL_OPTION_UNITS".

Hope this helps!

Thanks for the answer.

Will sort out the LL_OPTION_DEFDEFFONT and found many other options. So will go though them. But would be nice if the was like a default "blank"/"template" report no databases but has textboxes and other default stuff you need in all reports. Would be a great time saver.

In Crystal you can copy from one report to an other report so that makes it easy to get stuff.

The “default” alignment for numbers makes limited sense to me. Any application where numbers are in the report (table object) will have to be right aligned. So to me that should be the default.

Nice article about the sizing but requires “it’s supported for .NET, Delphi and C++ if you’re using the available data provider implementations.“

I am using the DLL interface with Dataflex develop language, so looks not like an option.

Peter

Hello,

thank you for your reply.

You can copy a “default.lst” file (or a different extension, depending on the project type) into your report directory. This “default.lst” acts as a template and will be used as the basis for any new projects you create.
-see: Defining a default project in the Designer for new projects

That allow for one default.

I would not make to select from multiple one.

Simple example one portrait one landscape.Naturally i can rename it when I need one. But I will have multiple starting points. So saving time is always nice.

I will code it in my application. So select the template and i will take care of it. But when it is in L&L it would be easier

Peter