cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform printing

Former Member
0 Kudos

Hi All,

I am new to smartforms and I am able to print what I need to. But the problem is when printing it in the table, fields are not getting printed in a straight line which to be in a clear sense the char fields are printing at the top of the row line where fields with curr and numc at the bottom.

something like

material description quatity price

9102202 arc lights

20.00 2,200.00

9103402 semi lights

12.00 1,100.00

Am I missing something. Can somebody please help me with this.

Regards,

Kiran.

Accepted Solutions (1)

Accepted Solutions (1)

valter_oliveira
Active Contributor
0 Kudos

Seems that the line is breaking. It's happening because your table must not have enough space (small line lenght).

Recheck the space you gave for each column (starting at the 3rd, since the first two columns are printing ok). Resuming, give more room for those columns.

Regards,

Valter Oliveira.

Former Member
0 Kudos

Thanks for your time.

I don't know whether I was clear in mentioning the problem. It was never going into the next line. It was printing like a sub script but with same sized fonts.

Single row in a table.

-


9102202 arc lights

20.00 1,200.00

-


The spacing is fine. I am passing the curr and numc values into a char field and it is printing it perfectly. But the problem now is the amount is not getting printed with a ','.

previously it was like 2,200.00 now its 2200.00.

Regards,

Kiran.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi kiran,

I got what is your problem, its all because of the leading spaces in your Numc Fields so make sure you condense them before print.

You can do it by two ways;

Assume you are having a numc field GV_NUMC.

1)Using code lines before printing as;

Condense GV_NUMC.

2) Another easiest way is to specify like below while printing;

&GV_NUMC(C)&

The C in the bracket will condense all leading spaces.

Give this a try and reply with the results.

Regards

Karthik D

Former Member
0 Kudos

Hi kiran,

Declare the currency field in the global defintions currency/quantity fields tab of the smartfroms.

Regards,

Sravanthi

naimesh_patel
Active Contributor
0 Kudos

You must use the TABLE node > Table Lines.

Create your cells for each field.

Create a Text Node under the each cell

So, Smartform would look like:


.MAIN
..TABLE  " < create table lines. create cells in it same as per your columns in output
...HEADER
...MAIN
....LINE
.....CELL1
...... TEXT1
.....CELL2
...... TEXT2
.....CELL3
...... TEXT3
...FOOTER

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks for your time. Already done it exactly as the way you mentioned.

Rgds,

Kiran.