|
-
Dec 10th, 2005, 12:07 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] how to use grouping in datareport and to use shape command
how to use grouping in datareport and to use shape command
-
Dec 10th, 2005, 12:34 AM
#2
Re: how to use grouping in datareport and to use shape command
Not sure, but it should be similar to the mshflexgrid:
Shaped msHflexgrid
-
Dec 10th, 2005, 10:51 AM
#3
Lively Member
Re: how to use grouping in datareport and to use shape command
First initialize the dataEnviroment like DataEnviroment1 using the tables that you like, and then create then data report with groupHeader like you want..
this code is for datareport.
VB Code:
Private Sub DataReport_Initialize()
Printer.Orientation = vbPRORLandscape
DataReport1.Orientation = rptOrientLandscape
'define as variáveis usadas no projeto
Dim strSQL As String
' Dim strFin As String
' Dim strInicio As String
Dim oConn As New ADODB.Connection
Dim oRS As New ADODB.Recordset
oConn.CursorLocation = adUseClient
'estou usando a conexão que ja foi criada no dataenvironment
oConn.ConnectionString = DataEnvironment1.Connection1
'abre a conexão com o banco de dados Norhtwind.mdb em d:\teste
oConn.Open
'define o titulo do relatório
DataReport1.Title = "TODO SOBRE QUIEN ES QUIEN"
'define o comando SHAPE
strSQL = "SHAPE {select * from basicos WHERE ID = " & Val(FrmQuienEsQuienONTS.Text29) & " " & "} AS Command1 APPEND ({select * from judicializacion} AS Command3 RELATE 'ID' TO 'ID_PROFILE') AS Command3"
MsgBox strSQL 'ESTE SE DEBE QUITAR
oRS.Open strSQL, oConn, adOpenForwardOnly
'atribui o recordset gerado ao datareport
Set DataReport1.DataSource = oRS
End Sub
Added [vbcode][/vbcode] tags for clarity -
Hack
Last edited by Hack; Dec 11th, 2005 at 07:30 AM.
-
Dec 11th, 2005, 07:30 AM
#4
Re: how to use grouping in datareport and to use shape command
Moved to Reporting section.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|