Hey there,
I am using the JBGrid to print data from a database.
Unfortunately there is a border in the printed version surounding the grid that I can not get rid of!
I tried all sorts of things to make that border disappear:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Option Explicit
Public Sub Form_Load()
JBGrid1.HeaderHeight = 0
JBGrid1.HeaderVisible = False
JBGrid1.Parent.setShowGrid(False)
JBGrid1.BorderStyle= fmBorderStyleNone
JBGrid1.BorderColor=vbWhite
JBGrid1.GridColor=vbWhite
JBGrid1.Parent.disable
JBGrid1.Cols = 3
Dim x As Integer
For x = 0 To 99
JBGrid1.DataMatrix(x,1)= "row " & x & " / col 1"
Next
JBGrid1.Rows = x
JBGrid1.Parent.setBorder(BorderFactory.createEmptyBorder())
End Sub
Public Sub Command1_Click()
JBGrid1.Parent.print()
End Sub
|
You can preview by choosing -> Fax in the printeroption window and find your way to -> FaxPreview
Anyone any thoughts on this one?
Or maybe some other way to print the content of a JBGrid (with pictures) over a couple of pages?
Dani