Page 1 of 1

Configuring Report before print

PostPosted: Mon Nov 09, 2015 7:48 pm
by BRobinsonS
Is it possible to set the size of the page of report and position of objects on the page before printing report?

I have an envelope printing app that I want to allow creation of different custom envelope sizes.
The position of return and forwarding addresses would change depending on the size of envelope.
The details/settings would be kept in a table for the different custom sized envelopes.

Maybe even to create labels sizes for envelopes too big for user's printer.

Your thoughts would be appreciated.

Re: Configuring Report before print

PostPosted: Tue Nov 10, 2015 6:55 am
by Gaev
Brian:

Given that there are only a few (envelope) sizes to contend with ... could you replicate the report (except for the locations of the content) for each supported size ? ... then ask user to choose from one of the sizes ... followed by an If/Then/Else code block to pick the corresponding Report at run time.

Re: Configuring Report before print

PostPosted: Tue Nov 10, 2015 7:45 am
by BRobinsonS
I am trying to create a NeoBook version of a Delphi version of my envelope program An EZ Envelope. http://www.AnEZEnvelope.com
Delphi is too expensive to update. I am at Delphi 2009 and only develop mostly as a hobby.
I have created a 'report' for the most popular envelope sizes and will do that with the Neobook version.

However, the Delphi version has the ability to create a custom size envelope and I was hoping to duplicate in Neobook.
I am not sure of how many of my customers use this feature but I didn't want the Neobook version to be any less featured.

Another task will be to have the return address adjust to the size of the logo/image being used.
But that would be another discussion.

Re: Configuring Report before print

PostPosted: Tue Nov 10, 2015 7:11 pm
by Neosoft Support
Unfortunately, reports must be designed for a certain size paper/envelope. It doesn't have the ability to automatically adjust to any size paper.

Programs created with Delphi 2009 will still run perfectly well under Windows 10.

Re: Configuring Report before print

PostPosted: Wed Nov 11, 2015 6:52 pm
by BRobinsonS
I have kept Delphi 2009 alive having installed it from my XP computer to my Windows 7 laptop (after some tries) now Windows 10.
Haven't done a lot with Delphi but would like to maintain the app I refer to.

However, I was not successful installing it on my newer Desktop computer running Windows 7.
So don't have a backup Delphi to my laptop.
Any suggestions?

I enjoy 'programming' with Neobook and NeobookDBPro and hope it will continue to satisfy my needs.
Thus my desire to convert other apps to Neobook.

Re: Configuring Report before print

PostPosted: Wed Nov 11, 2015 7:16 pm
by Neosoft Support
However, I was not successful installing it on my newer Desktop computer running Windows 7.
So don't have a backup Delphi to my laptop.
Any suggestions?


I don't know. Maybe you can find some information on one of the Delphi forums. However, I was able to install a copy of Delphi 7 on a Windows 10 PC. The only thing I had to do differently was to install it to a folder off the C: drive (C:\Delphi 7) instead of the installer default (which Windows 10 didn't like for some reason).

Re: Configuring Report before print

PostPosted: Wed Nov 11, 2015 7:39 pm
by BRobinsonS
Now you mention it. I believe I read that somewhere and maybe I did install off C: on laptop.
I will have to look again.

I think I will uninstall on the Desktop and re-install in C:\Delphi2009

Thanks.

Re: Configuring Report before print

PostPosted: Thu Nov 12, 2015 6:29 pm
by BRobinsonS
Uninstalled Delphi 2009 from Desktop Computer along with NexusDB and Fast Reports add-ons.

Checked Laptop and saw Delphi was installed in Programs (x86) folder but Nexus DB and Fast Reports were installed off root C:
i.e. C:\NexusDB installed and C:\Fast Reports Installed folders.
(Perhaps the cause of errors.)

So installed similar to Laptop and seems to compile the app I tested.
App 'seems' to run ok. (but early).

A couple of error messages showed from Delphi.
I maybe should have stuck with the original plan to install Delphi in C:\Delphi2009 :oops:

but we will see.

Thanks for offering 'off-topic' help.
That is one of the reason I enjoy this forum.