Topic: Print.vdm question (1 of 8), Read 94 times
Conf: VEDIT Macro Language Support
From: Deleted User
Date: Friday, February 04, 2000 12:12 PM

I am trying to print records that are 626 characters long using a right margin of 100.
Therefore each record will take 7 lines to print.

When I turn on the ruler and line numbering in the print.vdm the 1st line of each record is indented several spaces after the line count. However the 2nd through 7th line (which is a continuation of the same record)are not indented. Also the ruler at the top does not take into account the indention after the line number.

I would like for the ruler and all lines of data to be aligned. Can you give me any assistance in changing my print.vdm to accomplish this ? If all lines of data and the ruler could be indented to start in the same location I think that would solve my problem.


Thanks,
Eddie Eakes

 


Topic: Print.vdm question (2 of 8), Read 84 times, 1 File Attachment
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Monday, February 07, 2000 10:09 AM

Eddie,

I modified the original PRINT.VDM to meet your needs (indeed a good suggestion!).

It is attached to this posting as PRINT-Z.VDM.

You should rename your original PRINT.VDM and replace it with my one to test it.

Please let me know if it's o.k.

Christian


PS: It's a first solution. Maybe the macro can be optimized. I'm sure... :-)

 
PRINT-Z.VDM (9KB)

 


Topic: Print.vdm question (3 of 8), Read 84 times
Conf: VEDIT Macro Language Support
From: Deleted User
Date: Friday, February 11, 2000 09:46 AM

Christian,

Thanks so much for the work on print.vdm. It is much better for the need I have. The record count and the ruler are aligning very nicely now. If you are open to suggestions, I would suggest the following for improvements: 1) add a blank line after the ruler. 2) Have an option for to put a blank line between records. 3)on the line above the ruler maybe place a "1" above the first "+", a "2" above the 2nd "+",etc. I'll try to check the web board more often.

Eddie Eakes

 


Topic: print.vdm question continued (4 of 8), Read 82 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Tuesday, February 15, 2000 07:15 AM

Hello Eddie!

I think I've found some bugs in PRINT.VDM ...

They are fixed now.

ftp://ftp.vedit.com/share/print.vdm

But you have to do some preparations to make the print fine:

1.) Set the printer you want to use in Windows to the wanted orientation: landscape.
It doesn't work if you do that in VEDIT!
(That seems to be a bug in VEDIT. I will send it to Ted.)

2.) Set the file type to the record length (626 in your example file)

3.) Set printer right margin to a reasonable value.

4.) Print it via PRINT.VDM


I'll hope that's now done.


Christian

 


Topic: print.vdm question continued (5 of 8), Read 80 times
Conf: VEDIT Macro Language Support
From: Deleted User
Date: Tuesday, February 15, 2000 11:43 AM

Hi Christian,

I set under file type a record size of 626.

To get a print line of 100 characters, I set the right margin to 107. IMHO it would be nice to simply use 100 as the right margin and have print.vdm expand it to take into account anything necessary for the indention related to record numbers in the left margin.

The ruler line looks good. However it begins with 7 dashes on the left side. Is that intentional ?

I still only get the header on the first page. No ruler after the 1st page either.

Do I need to set anything else to get the header and ruler on subsequent pages ?

Thanks,

Eddie

 


Topic: Re: print.vdm question continued (6 of 8), Read 81 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Tuesday, February 15, 2000 12:36 PM

Hello Eddie,

>To get a print line of 100 characters, I set the right margin to 107.
>IMHO it would be nice to simply use 100 as the right margin and have
>print.vdm expand it ...

That's not easily possible:
The right margin is used technically in VEDIT. It's the absolute print
width.
If the macro would add e.g. 7 to take the line numbers into account
here the right margin in the Config menu would change too ...
Much too confusing!

The other possibility would be:
Changing the macro to configure the printing width in the code itself
(like the other parameters).
But that's too unflexible and not comfortable for most users.
IMHO it should be rarely necessary to alter the config values in the
macro.

So I did it the way I did...

Maybe there are other opinions from other readers here?
Suggestions? ;-)


>The ruler line looks good.
>However it begins with 7 dashes on the left side. Is that intentional ?

Yes. Blanks don't look good IMHO. What do you want to see?

It's the line
Type_Char(45,COUNT,#116*7 + #117*11 + (#116 && #117))

The "45" is the dash. Try other characters.... (ASCII codes are
available in the 'Misc' menu.)


>I still only get the header on the first page. No ruler after the 1st =page either.

Did you set the printer to landscape _in_Windows_before_printing with
VEDIT? That's important!

I tried it with your example file and it worked in landscape too.

Christian

 


Topic: print.vdm question continued (7 of 8), Read 84 times
Conf: VEDIT Macro Language Support
From: Deleted User
Date: Tuesday, February 15, 2000 12:52 PM




Christian,

<<>>
It was just a little confusing to me, it appeared that the dashes from the
separator line had wrapped around. Now that I know it is intentional, and not
wrapping I am clear on that matter and dashes are fine.

<< VEDIT? That's important!>>>
From within Vedit, I selected File - Print - Properties and set the orientation
there.

I tried to configure the latest print.vdm to give me dates in mm-dd-yyyy format,
but it still showed as dd.mm.yyyy. Possibly a bug.

Thanks,
Eddie

 


Topic: Re: print.vdm question continued (8 of 8), Read 86 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Tuesday, February 15, 2000 01:28 PM

Eddie,

><< >VEDIT? That's important!>>>
>>From within Vedit, I selected File - Print - Properties and set the =orientation
>there.

That's the problem. You have to change it outside of VEDIT!!! :

Start menu - Settings - Printer :
your printer's properties: default document properties => landscape
(I don't know the exact names of the english Windows)


>I tried to configure the latest print.vdm to give me dates in mm-dd-yyyy= format,
>but it still showed as dd.mm.yyyy. Possibly a bug.

I tried it just a minute ago: date is mm-dd-yyyy.

You have to set: #96=0


Christian