Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

NOn Embedded Crystal Report in vs2008

$
0
0
in VS2008 i need to show the report in CR (8.5 or any other version) designed outside the visual studio.

But i dont want to embed the CR in my application so that i can edit reports easily without building the app once again.

and also it should work without installing CR in the client machine.

i am using it fine in vb6 & cr8.5 using the following code

Code:

    Crp.Reset
    Crp.DataFiles(0) = App.Path + "\" & MyCom.ID & "\Inventory.mdb"
    Crp.Password = V_CrystalPass
    Crp.SelectionFormula = "{Rpt.Date} >=#" & v_dt1 & "# and {Rpt.Date} <=#" & v_dt2 & "#" & IIf(Trim(V_SqlConditions) <> "", " and " & V_SqlConditions, " ")
    Crp.Formulas(0) = "Company = '" & MyCom.Name & "'"
    Crp.Formulas(1) = "Ason= '" & Format(Date, "dd-MM-yyyy") & "'"
    Crp.Formulas(2) = "Title = '" & V_Title & " Credit Note'"
    Crp.Formulas(3) = "fromto = 'From " & Format(Dtp1.Value, "dd-MM-yyyy") & "  To  " & Format(Dtp2.Value, "dd-MM-yyyy") & " '"
    Crp.ReportFileName = App.Path + "\" + Filename
    Crp.WindowState = crptMaximized
    Crp.Action = 1


Viewing all articles
Browse latest Browse all 594

Trending Articles