rui_fernandes Posted October 22, 2007 at 03:32 PM Report Share #142105 Posted October 22, 2007 at 03:32 PM Boa tarde... tipo, eu queria que atraves de crystal reports podesse imprimir 3 reports, os 3 iguais, apenas iria mudar o conteudo de uma LABEL.(Original,Duplicado e triplicado). será isto possivel ? mas vai utilizar o mesmo report, apenas muda a Label. Cumps. Rui Fernandes Link to comment Share on other sites More sharing options...
Asgorath Posted October 22, 2007 at 05:16 PM Report Share #142138 Posted October 22, 2007 at 05:16 PM Boas. Neste exemplo estou a usar TextBox no report não há Labels!! Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Dim crDatabase As Database Dim crTables As Tables Dim crTable As Table Dim crTableLogOnInfo As TableLogOnInfo Dim crConnectionInfo As ConnectionInfo Dim crReportDocument As New CrystalReport1 crConnectionInfo = New ConnectionInfo With crConnectionInfo .ServerName = "Ares" .DatabaseName = "Dinefer" .UserID = "Utilizador" .Password = "ab,cdef123!" End With crDatabase = crReportDocument.Database crTables = crDatabase.Tables For Each crTable In crTables crTableLogOnInfo = crTable.LogOnInfo crTableLogOnInfo.ConnectionInfo = crConnectionInfo crTable.ApplyLogOnInfo(crTableLogOnInfo) Next '' altera desc If tipo_de_documento.Trim.ToLower = "linha" Then Dim crreportobject As CrystalDecisions.CrystalReports.Engine.ReportObject For Each crreportobject In crReportDocument.ReportDefinition.ReportObjects If TypeOf (crreportobject) Is CrystalDecisions.CrystalReports.Engine.TextObject Then Dim crtextobject As CrystalDecisions.CrystalReports.Engine.TextObject = DirectCast(crreportobject, CrystalDecisions.CrystalReports.Engine.TextObject) If crreportobject.Name.TrimEnd = "Text3" Then crtextobject.Text = "Custo de uma linha da Obra discriminado por Familias" End If If crreportobject.Name.TrimEnd = "Text5" Then crtextobject.Text = " - Pos " & PosObra_ & " - " End If End If Next End If formula=string.empty crReportDocument.RecordSelectionFormula = formula CrystalReportViewer1.DisplayGroupTree = False CrystalReportViewer1.Zoom(100) CrystalReportViewer1.ReportSource = crReportDocument "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
rui_fernandes Posted October 22, 2007 at 08:29 PM Author Report Share #142232 Posted October 22, 2007 at 08:29 PM epah e no ciclo, tenh de fazer o FOR EACH ? nao posso ir logo directo a textbox ? mas eu keria mandar o mesmo report 3 vezes, e so alterar a textbox em cada um tas a ver... Rui Fernandes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now