on 04-25-2012 11:27 AM
Using VB.Net 2010 SP1 and Crystal Report 13 SP2
Dim objReport As CrystalDecisions.CrystalReports.Engine.ReportDocument = New rpReport
objReport.PrintOptions.PrinterName = System.Drawing.Printing.PrinterSettings.InstalledPrinters(5)
objReport.SetDataSource(dsreport.Tables(0))
when i debug first system set printer name but after executing to set report data source, printer name set to empty, i try to set printer name but unable to set printer name after assigning data source
Can any one please help me?
Hi Syed,
Go to Visual studio -> Crystal Report -> Project - Page Settings
Remove the check over "no printer installed"
I'm sorry for the translate but i've vs italian.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olha primeiro tens que listar as impressoras e escolher uma. Se usas o VB.NET aqui vai o procedimento para carregar as impressoras:
For Each Printer In PrinterSettings.InstalledPrinters
ComboBox1.Items.Add(Printer)
Next
podes fazer isso antes de carregar o crystal report.
Ou para evitar obrigatoriedade de impressora abre o report no formato edital faça click com o botão direito do mouse e escolhe page setup "Configuração de pagina" e desactiva o Visto que tiver por cima do nome da impressora.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.