DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    10

    Question printing crystal report directly,using "print to printer"

    hi,
    -->sorry for poor english

    i have a web application report. using "print to printer" inst, i send the report directly to the printer, without showing it in adobe acrobat. when i run the report locally it works good and would be printed, but by publishing the site , i get this error: no printer are installed!

    why???

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Maybe it is looking for a printer on the web server running your site?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Mar 2008
    Posts
    10
    I think so!but.... what should I do?

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    If you don’t get an answer here, you might try Crystal’s tech support site: http://support.businessobjects.com/
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Mar 2008
    Posts
    10
    i couldn't find any solution,yet

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    How are you sending the document to print? What is your code?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  7. #7
    Join Date
    Mar 2008
    Posts
    10
    i use this code in vb.net using crystal report:
    CrystalReportSource1.ReportDocument.PrintToPrinter(1, true, 1, 1)

  8. #8
    Join Date
    Mar 2008
    Posts
    10
    how could i find the installed printers on clients? any idea?! please help me it is so urgent!

  9. #9
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Quote Originally Posted by pourhabibi
    how could i find the installed printers on clients? any idea?! please help me it is so urgent!
    Code:
    Imports System.Drawing.Printing
    
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim prtdoc As New PrintDocument
            Dim strDefaultPrinter As String = prtdoc.PrinterSettings.PrinterName
            Dim strPrinter As String
            For Each strPrinter In PrinterSettings.InstalledPrinters
                ComboBox1.Items.Add(strPrinter)
                If strPrinter = strDefaultPrinter Then
                    ComboBox1.SelectedIndex = ComboBox1.Items.IndexOf(strPrinter)
                End If
            Next strPrinter
    
    
        End Sub
    End Class
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 4
    Last Post: 03-26-2008, 06:50 AM
  2. Replies: 1
    Last Post: 06-30-2007, 01:57 AM
  3. Working with Crystal Report Ver 10
    By AM003295 in forum VB Classic
    Replies: 4
    Last Post: 08-12-2005, 09:13 PM
  4. Replies: 2
    Last Post: 06-08-2002, 11:30 AM
  5. Replies: 0
    Last Post: 08-11-2001, 03:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links