Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 1:49 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Left margin in a pdf
PostPosted: Tue Jan 24, 2012 12:34 am 
Offline

Joined: Mon Jan 16, 2012 8:08 am
Posts: 161
Location: India
Hi All,
I am printing the data of a listbox on a pdf but when i am printing the data on the pdf i want to keep some left margin (space between the first column of the listbox and the left border of the pdf ) but i am not able do that.here is my code

This code is for printing the header of the listbox

if (xcounter=0) Then
g.DrawString Listbox1.Heading(xCounter), xCounter * xColumnWidth,yRow
End If



This code is for printing the row of the listbox


For yCounter = 0 to Listbox1.ListCount - 1

If yCounter=0 Then
yRow = yRow + g.TextSize + 8

Else
yRow = yRow + g.TextSize + 10
End If

For xCounter = 0 to 5

g.DrawString Listbox1.Cell(yCounter, xCounter), xCounter *xColumnWidth, yRow

Next xCounter

Next yCounter


end if



Plz give me some idea .

Thanks,
Bimal.


Top
 Profile  
Reply with quote  
 Post subject: Re: Left margin in a pdf
PostPosted: Tue Jan 24, 2012 2:16 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
(xCounter * xColumnWidth) + 50, yRow


Top
 Profile  
Reply with quote  
 Post subject: Re: Left margin in a pdf
PostPosted: Tue Jan 24, 2012 3:29 am 
Offline

Joined: Mon Jan 16, 2012 8:08 am
Posts: 161
Location: India
kermit wrote:
(xCounter * xColumnWidth) + 50, yRow



thank you kermit


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group