ciao, ho un piccolo grande problema con la stampa delle mie fatture e DDT da VB6, cioè non so come fare a stampare più fatture in una unica volta.
Mi spiego meglio, io ho fatto il mio bel rpt delle fatture, poi da VB6 lo lancio utilizzando la proprietà RecordSelectionFormula per dire il numero di fattura.
E fin qui tutto bene 
Il problema nasce quando io voglio stampare più di una fattura perchè se io passo nel RecordSelectionFormula più numeri di fattura mi esce sempre comunque una sola fattura con il dettaglio di tutte le altre
anzichè stampare N fatture. E' come se mancasse un raggruppamento x numero di fattura ma non so come farlo in CR.
Non riesco a capire se è sbagliata la stringa SQL (ma non credo proprio), se è fatto male il report o se sbaglio da VB?
Di seguito il codice utilizzato in VB:
Private Sub CmdPrint_Click()
Dim Conta As Integer
Dim crAPP As New CRAXDRT.Application
Dim Report As CRAXDRT.Report
Dim tbl As CRAXDRT.DatabaseTable
Dim StrPrn As String, QryPrn As DAO.Recordset
MSFDDT.Col = 0
If MSFDDT.Text = "" Then Exit Sub
If Val(TxtNumVoci.Text) = 0 Then Exit Sub
If Not Messaggio("119") Then Exit Sub
StrPrn = "SELECT * FROM STAMPA_DDT"
Set QryPrn = DBDat.OpenRecordset(StrPrn, dbOpenDynaset)
Set DatPrn.Recordset = QryPrn
Set Report = crAPP.OpenReport(DBPath & "\Print\ddt.rpt")
'Imposta Database all'interno del report
For Each tbl In Report.Database.Tables
tbl.SetLogOnInfo "", "", "", DbPwd
tbl.Location = DBPath & "\Dati\DATI.mdb"
Next
Report.RecordSelectionFormula = "{DDT.ID_DDT}=" & CInt(MSFDDT.Text)
FrmCRViewer.CRViewer1.ReportSource = Report
FrmCRViewer.CRViewer1.ViewReport
FrmCRViewer.Show
' Vengono distrutti gli oggetti
Set Report = Nothing
Set crAPP = Nothing
End Sub
Qualsiasi aiuto è gradito
Grazie