Skip to Content
author's profile photo Former Member
Former Member

scripts

hi guys,

I have to print some data using the script. I have 13 fields to print. These include doc no, date etc...My problem is that all the fields are not being printed on one line. The allignment is not coming right. For ex: The document number has length, say 8, so the next field is displayed only after 8 characters, irrespective of whether the data actually contains 8 chars. How do i terminate the extra space that comes after every field?

thanks

regards

nayan

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 09:52 AM

    In your script type your variables like this

    &DOC_NO(C)&

    where C means condense blank spaces

    Message was edited by:

    Nehal Fonseca

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 09:52 AM

    Hi,

    i think it is better go for landscape format rather than portrait

    or if you have to use portrait then split it into two rows

    as one line may not be suffiicient to display all the feilds and there should be atleast some gap bettwen the two field so split it in two rows

    and then display the reocrds and after the second row just display a blank row

    you have to create the paragraph formats clearly and you have to make use of those as they are thevery good solutions for the alignment

    regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 09:53 AM

    well simply write &FIELD(C)& this will condense and remove the extra space.

    Hope That Helps

    Anirban M.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2007 at 10:05 AM

    You problem can be solved by creating Tab spaces in Paragraph format... also try to condense the field by using option C.

    Let me give you an example...

    Create paragraph format PS

    goto tabs and define tabs...

    1.00 CM LEFT

    4.00 CM LEFT

    8.00 CM LEFT

    Now apply your paragraph format like this... note ,, implies paragraph format...

    Goto your line items in your main window...

    PS ,, &Var1(C)& ,, &var2(c)& ,, &var3(c)&

    Now var 1 is displayed starting form 1 Cm of your window, var2 will be displayed from 4 Cm and var3 display at 8 cm, so now even your data varies dynamically still your data will be aligned.

    Regards,

    SaiRam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.