locked
Print Control of Crystal Report RRS feed

  • Question

  • User1326168122 posted

    Hi,

    I need print report from print button viewer direct to printer. I added to web.config file

    <configSections>
    <sectionGroup name="businessObjects">
    <sectionGroup name="crystalReports">
    <section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=10.2.0.1078, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
    </sectionGroup>
    </sectionGroup>
    </configSections>

    <businessObjects>
    <crystalReports>
    <printControl>
    <add key="url" value="http://localhost/PrintControl.cab" />
    </printControl>
    </crystalReports>
    </businessObjects>

    how it is indicated in MSDN, but when I try to print a empty window appear but inmediately close and nothing happen.

    Somebody knows which is the problem?

    Where can I download PrintControl.Cab file? I was searching in BusinessObjects but I can't find it.


    Monday, August 31, 2009 6:38 AM

All replies

  • User1763172376 posted

    try

    http://www.codeproject.com/KB/printing/printtoprinter.aspx


    Wednesday, September 9, 2009 8:39 AM
  • User-1388334937 posted

    i had the same problem I found PrintControl.cab at

    http://support.businessobjects.com/CRforVS2005/PrintControl.cab

    but it didn’t work as it was for VS2005, I tried to find 2008 version of the file for a while and then tried my luck by changing the url by replacing 2005 with 2008 as follows

    http://support.businessobjects.com/CRforVS2008/PrintControl.cab

    it worked. I downloaded the file and place on server as stated in above msdn article. Now printing is running file. 

    Saturday, January 16, 2010 2:49 PM
  • User-593916771 posted

    Hello:

    I am not sure if this is related to the same problem that we had at our Company,  User would access Crystal Reports on the Local Intranet and once the report was open, user would click on the Print Icon to print the Document (Report) and would get an error message related to "Crystal Report Print Control".

     

    The Fix was to copy several dll Files and to the C:\Windows Directory.  This files to be kept under the Folder Name,  called Activexviewer.  Once these Files were copied, I created a Batch File to Register the files which made the Printer Control to work (Only under Windows XP).  I hope this Help...

    Batch file as follow:

    Rem rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\Activexviewer\crviewer.inf
    Rem rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\Activexviewer\PrintControl.inf
    regsvr32 /s %windir%\Activexviewer\CRViewer.dll
    regsvr32 /s %windir%\Activexviewer\PrintControl.dll
    regsvr32 /s %windir%\Activexviewer\swebrs.dll
    regsvr32 /s %windir%\Activexviewer\sviewhlp.dll
    regsvr32 /s %windir%\Activexviewer\csprintdlg.dll
    regsvr32 /s %windir%\Activexviewer\pvlocale-1-0.dll
    regsvr32 /s %windir%\Activexviewer\xerces-c_2_7.dll

    Monday, August 29, 2011 1:45 PM