The problems are :-
Lcd_Out(1,1,txt1);
Will print
"Baseline is" starting from 1st line char position 1 to char position 11.(count that).
and the following line:-
LCD_Out(1,3,baseline);
I see what you want to do.
But do as follows:-
replace "temp" by "baseline" and change accordingly for no of digits.