On Aug 12, 2006, at 7:21 AM, Lennox Jacob wrote:

That is not what I was looking for, what I really want to do is to make it done from the App.

I was afraid that was what you were attempting to do.

OK this is what I wanted to do:
A Pushbutton called "Adjust Margins" is clicked and a window named MarginAdjustments is brought up. MarginAdjustments has two StaticFields Top and Left and and their coprresponding Editfields Top and Left. The user inputs the value he/she desires and closes MarginAdjustments window. What happens now is that the complete output to the printer has its left and top margins adjusted accordingly.

Obviously, the changes will have to be made in the apps preference file.


Why all of this?

OK some lab forms are distributed as pads to the users and when these forms are printed sometimes the data is not aligned (Top and Left) as the previous pad and a little adjustment has to be done.

By doing it from the App is it much easier for the user, and everything else is done in the background.

Any suggestions?

Without seeing the actual code in your printer routine it is hard to guess at the correct code. It can be done but you will have to do all the layout setup yourself and use the DrawString routines in the Graphics class.

The offsets can be coded into it and set,saved and read as properties. You can read the margin properties of the printer and use these values in your code to calculate the offsets. It's a bit of work but it is feasible.

If you wish, you can send me your project (off list) and I'll look at it as time permits.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to