Problem in Printing and Reporting Crystal Report

Hai,
I'm Using VS2010 and SQL Server.
The below code is I have used in my page for Crystal report
protected void Page_Load(object sender, EventArgs e)
//Here I retrieve User Name from another page using session
        lblUserName.Text = Session["empName"].ToString();
    protected void btnReport_Click(object sender, EventArgs e)
        ReportDocument rdoc = new ReportDocument();
        SqlConnection con = new SqlConnection("Data Source=SERVICETEAM-PC;Initial Catalog=salaryReg;User ID=sa;Password=kavi");
        con.Open();
        SqlCommand cmd = new SqlCommand("SalaryEarnings1", con);
        cmd.CommandType = CommandType.StoredProcedure;
        SqlDataAdapter da = new SqlDataAdapter(cmd);
        DataTable dt = new DataTable();
        da.Fill(dt);
        rdoc.Load(Server.MapPath("CrystalReport.rpt"));
        rdoc.SetDataSource(dt);
        rdoc.SetParameterValue("empName", lblUserName.Text);
        CrystalReportViewer1.ReportSource = rdoc;
        CrystalReportViewer1.DataBind();
        con.Close();
this is the code I've used to generate crystal report in one of my asp.net web site under button click event. This create report without any errors but after that when
i click print button on crystal report tool bar print function is not working and when try to do Exporting the report it asks for further details by giving a window like this
The report you requested requires further information.
DataSet
Server name: ...........
Database name: .........
User name: ..........
Password: ...........
(checkbox) Use Integrated Security 

Please post questions related to using Crystal Reports on their
forums.

Similar Messages

  • Problem with printing some report

    hi very body
    we have some problems with printing some reports.
    the problem is when printing a report the computer processes stoped
    and i should restart the computer a gain to print the report for first time and
    then in the second time i have same problem.

    Maher,
    You can check out the new printer driver test utility verions2.0 on OTN at:
    http://otn.oracle.com/software/products/reports/files/printerdrivertest.zip
    This should help you determine if it is a printer problem or whether you should look into another area.
    Also, you don't mention which version of reports, what command line options your using, the computer
    configuration your using whether it is a network printer or local printer connected to the machine. Support
    will need this information to help determine where your problem lies.
    Regards,
    The Oracle Reports Team

  • Problem on print a report in mode character

    hi, i have oracle 8i and reports 6i, my reports it's generate in mode character, when i send to print (printer epson fx1180), the print is bad, (i configure the prt files example: bold esc "E", Unbold esc "F"),
    MY problem is with windows 2000, i send to print on windows 98 and all good, but now i have windows 2000, anybody help me to config the printers file for windows 2000

    You can create a PDF file using the [itext |http://www.lowagie.com/iText/] library
    you can create reports using jasperreports
    you can print the reports and save them as PDF,EXCEL ,HTML and more...
    (jasperreports is using the [itext |http://www.lowagie.com/iText/] library )
    you can edit your reports using ireport
    hope that helps

  • Problem in printing D2k Reports in Win2000

    Earlier we have installed win98 and nt and were using developer 2000(Reports 3.0) for printing our character based reports but now after swiching to windows 2000 send that same reports from windows 2000 the printer didnt recognize the condenced codes and it prints the codes as it is and make our reports scrumbled.How to solve this problem? Is it necessary to change the .prt file? If yes, what changes are to be made?

    Hi Debrup
    Sorry for the confusion. I meant RAW mode printing and this has nothing to do with Reports. You can get Windows OS to print in RAW mode. I was referring to that mode.
    Regards
    Sripathy

  • Problem in Printing ABAP Report in EP using SAP Transaction IVIEW

    Dear All,
    A very gud evening,
    I am using SAP Transaction Iview to show the ABAP Reports, But I have a Problem...
    How to print this report???
    Please solve this issue, I have measure requirement of it from client.
    Thanks in Advance..

    Thanks Haydn,
    But my problem is that, there may be no of users will be accessing this report. user will not be having SAP GUI installed in his machine. He will be accessing Transaction IView after login in EP (from any where may be from cyber cafe) and He would like to take printout using any button on the screen.
    So suppose any end user having only Internet Explorer installed in his machine, will he be able to take the print out. I think its very genuine requirement.
    OR user can not take print out untill SAP GUI is installed in his machine???
    Please suggest...
    Thanks in advance...

  • Problem when printing the report

    Hi,
    we have installed oralce 10g server.and created the reports all the formats are supporting by the server.if you give the direct printer option printer is printing junk values . any body help me on this.

    Hi,
    How many portlets are there in your page.
    Are you printing the report portlets ?
    Could you explain little bit clearly ?
    Regards,
    Vijay.B

  • Problem with printer and laptop wireless connectio...

    Hi    In the last 2 months we have found that the only way we can get the wireless printer and the laptop to connect to the wireless hub is by switching off the hub and restarting it.  The printer will then print and the laptop connect to the internet but once either is switched off again the only way we can get the hub to 'talk' to them is by switching off the hub.  I have been in touch with BT advisors this morning but not really got anywhere.  The chap was going to change the BT frequency but we have a Hub 3 so I don't think this is relevant.  Apparently we have got a good broadband speed.  I am not technical in any way but logic dictates it must be a hub problem.  Has anyone had similar problems - or any ideas.   The main tower PC has not had problems so far but we have noticed that short videos have been so slow that at times they freeze. Again this is very recent.   Many thanks.

    Hi Bob - not sure where Neener went nor if his issue was sorted out, but I'm stuck in the same place.  The manual for the printer tells me to select a WLAN network and put the printer in SES/WPS/AAOS mode - which I did.  Then it, in theory, went looking wirelessly for my Airporter Extreme.  It thought for 3 minutes and then came back with "No Access Point".  The AE is working fine, but the printer can't find it. 
    And another weird issue is that when I installed the drivers from the CD that came with the printer, it doesn't show up anywhere on my computer - nor does it show up as an option to add the printer.  It's just  non-existent.
    Here are the details....
    Printer: Brother HL-3070cl
    MacbookPro: 10.6.7
    Router: Airport Extreme
    Wireless mode: Create a wireless network
    Wireless security: WPA2 Personal (is that ok even if this is for a business?)
    Connect using: ethernet
    Configure IPv4: Using DHCP
    Any help you can offer me would be SO appreciated.  I'm pulling my hair out and have been trying to figure this out for nearly 2 hours now!!
    THanks,
    K

  • Problems with printer and network connectivity

    So I've been using an HP B110a photosmart wireless e-all-in-one printer that I got with my macbook pro and at the start, everything worked perfectly in terms of wireless printing, ePrint, and AirPrint. But recently, when I try to print wirelessly, it says the printer is not connected and I also can't find it on the list of nearby printers on the 'add printer' window. I also had problems with printing via ePrint but those have cleared up (I don't know what was wrong but it's fine now). Printing with AirPrint on my iPod touch has stopped working as well because the printer doesn't show up when I search for nearby printers.
    Here's what I've checked/tried so far:
    All the wireless services are enabled on my printer and my mac
    I've reset the printing system on my mac, printer settings to factory defaults
    Restarted mac/printer/iPod
    Restarted router
    Reinstalled HP printing software that came with the printer
    All software is up to date
    Wireless printing on another windows computer does work
    Setting up wireless printing using the HP install disc doesn't work
    Trying to add a new printer using the HP software disc that came with the printer is unsuccessful in locating the printer as well.
    Printing over USB is problem-free
    When I tried restarting the printer/router, I could see the printer for just a few minutes in the 'add printer' list but then it would disappear from the list and the printer would be 'not connected' so I can't print wirelessly.
    More info
    MacBook Pro (13 inch, early 2011)
    Mac OS X Lion (10.7.2)
    HP Photosmart e-All-in-One B110a
    Router is a Huawei HG556a that I got from Vodafone NZ
    Thanks in advance!

    http://support.apple.com/kb/DL907

  • Problems with printer and extreme n

    Hi I am having problems printing out wirelessly with my airport extreme and my canon pixma ip 4000.
    If I have a document in Word (for example) that needs printing I will send 1 copy to print and it will print fine. If I do one then decide I need another I cannot get it to print until I have restarted the base station, restarted my machine and restarted the modem.
    If I know that I want more than one copy and change the amount of copies to print out it will print the first page fine then it will half print the second page and then I have to go through the whole rigmarole again!!
    I am wanting to print off 10 pages of Thank you cards for my daughters wedding and it is literally driving me insane. For my sanity I am hoping someone has an answer to this problem.
    Cheers.
    Message was edited by: Alison Bancroft

    Hi,
    I am having the same problem. Apple did a firmware update to the Airport Extreme N after Leopard came out and that seems to have made the problem worse. I've learned that reseting the Airport Extreme in Airport Setup Utility, then unplugging the printer from the network, turning the printer off, turning the printer on, then plugging the printer USB connection back in will reset everything so it works, but it will randomly crash again, sometimes days later, sometimes in the middle of the next job. Does anyone have an explanation???
    Abbie

  • Problems with printer and external HD connected via Time Capsule with Windo

    Hello everyone!
    In January I bought an iMac 27 "(OS version: OS X 10.6.2) and a week ago a Time Capsule 1TB.
    I connected the iMac and a laptop with Windows XP SP3 both via ethernet to the TC, and to the USB port of the TC a USB hub to which I connected a Canon iP4200 and a LACIE 500GB HARD DISK.
    I reformatted the hard disk file system to Lacie Mac OS Extended (Journaled) and installed MacDrive 8 in the laptop.
    Now (after formatting the HD), with the iMac everything works: internet connection via ethernet or wireless, printing via ethernet or wireless as well as hard disk connection via ethernet or wireless.
    Laptop, instead, is only able to connect to the internet via ethernet or wireless while it isn't able to see and use printer and external hard drive, even though I installed AirPort Utility for Windows!
    The laptop also detects the AirPort disk of the TC but if I enter the (correct) password I get an error message!..
    Please, somebody help me, I do not know what to do!
    Thanks

    Have you run Bonjour on the Win PC's? Do a search on the support page and there's a description on getting things up and running from a WinPC in a Mac environment.

  • Windows 2008 problems with Delphi and the Crystal Reports VCL

    Anybody had any luck with Crystal XI using the VCL on a Windows 2008 machine?
    In testing we've found that everything seems to work, except that the user can not select a different printer.  When I go to the Printer Setup button, the panel that pulls up used to have, in previous Windows versions, a printer button inside the Printer Options box.  Windows 2008 does not, so the end user can not select a different printer to print to than their default.
    Anybody have any ideas on:
    1) Am I just doing somthing wrong
    2) A fix for the Crystal XI VCL that will address the probelm
    3) An option on how to call Crystal Reports from inside a Delphi program without the VCL?
    Obviously, I'm hoping I don't have to go with #3, but if that's the only solution I guess I need to know now.
    Mike Nielsen

    Hi Mike,
    Try these links:
    https://www.sdn.sap.com/irj/boc/businessobjects-samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375
    If that link doesn't work try this one:
    https://www.sdn.sap.com/irj/boc/businessobjects-samples
    Then click on the Crystal Reports .NET SDK link.
    Gets you to the .NET downloads and you should see this, try the RAS samples, gives you the most functionality:
    Crystal Reports .NET SDK Applications
    All Sample Applications
    All | Exporting/Printing | Report Modification | Viewing | Home
    Report Application Server .NET Sample Code Code Sample(ZIP 177 KB)
    Contains Visual Studio 2005 Web sample code pages that highlight features of the RAS SDK, including report parameter and formula modification, database logon, and exporting.10 Oct 2008
    NET-CS2005_CRNET_CR115_Set_Viewer-Locale-by-Page Code Sample(ZIP 51 KB)
    This sample shows you how to change the multilingual settings for the .NET web form viewer control (CrystalReportViewer) to any locale of your choice. The locale is set via a QueryString variable. The settings are changed on the webform page level instead of using the web.config. Changing the Regional Settings or IE Language Settings will not impact this sample. Note: This has only been tested on Crystal Reports XI R2 with Visual Studio .NET 2005.14 Jul 2008
    NET-CS2003_RAS-Unmanaged_CR115_Modify_Command-Table-SQL Code Sample(ZIP 31 KB)
    "This sample application shows how to retrieve and change the text of a SQL command table from a Crystal Report using the CR .NET SDK and in-process Report Application Server (RAS) Report Creation API (RCAPI). Note that you must have SP2 for Crystal Reports XI R2 for this sample to work. Previously you could access the RAS .NET SDK from the ReportDocument object only if you had a dedicated RAS server. Now you can use RAS in-process to accomplish this. "05 Mar 2008
    NET-CPP-Win2005_CRNET_CR115_Change_Record-Selection-Formula Code Sample(ZIP 3 MB)
    A .NET C++ Windows application that demonstrates how to change a record selection formula at runtime.03 Mar 2008
    Crystal Reports 2008 .NET SDK Tutorial Samples Code Sample(ZIP 2 MB)
    This sample contains Visual Studio 2005 Web sample code projects that highlight features of the Crystal Reports .NET SDK, including viewing and exporting reports, filtering data and setting parameters, and connecting to different data sources.19 Feb 2008
    NET-CS2005_CRNET_CR115_Modify_Image-Location Code Sample(ZIP 90 KB)
    This sample application shows how to change an image in a Crystal Report at runtime using the graphic location formula in the CR .NET SDK (C#).16 Feb 2008
    NET2003-CS-Web_CRNET_CR115_change_graphic-location Code Sample(ZIP 103 KB)
    This sample application shows how to change an image in a Crystal Report at runtime using the graphic location formula in the CR .NET SDK (C#).31 Jan 2008
    Crystal Reports .NET SDK u2013 Sample Applications from Tutorials Code Sample(ZIP 1 MB)
    This file contains C# and VB .NET Windows and web sample applications. These samples were built using the tutorials provided in the u2018Crystal Reports .NET SDK u2013 Additional Documentation and Tutorialsu2019 (cr_net_sdk_additional_en.zip). These sample applications apply to Crystal Reports 9 and 10, and Crystal Reports for Visual Studio .NET 2002 and 2003.10 May 2006
    Thanks again
    Don

  • Problem in Print Ready Report

    I designed a report in InDesign CS6 and sent to client Print Ready file in PDF format in CMYK 300 DPI. My client sent me comments of publisher about cover page that "the ink coverage is too high (more thatn 300% CMYK. This coverage must be reduced to 280% CMYK. Otherwise there will be ink drops / spots on the paper)." Can any one help me how I reduce ink at cover page from 300 dpi to 280 dpi. Thanks in Advance!

    Thank you so much for reply. I attached 4 screen shots of PDF export dialog. Please see them. 
    Also, my client send me mail with this message "The printing company told me: the problems are exactly the same (ink coverage and resolution). It seems you did not succeed to deliver a file that match the needs for Offset Printing. What do you know?"
    I M STUPIED I DO NOT KNOW HOW TO EXPORT FOR OFFSET PRINTING. PLZ HELP ME

  • [b]Problems to Print a Report made it with Report Builder Dev. 2k[/b]

    I have a report made it with Report Builder and in the screen preview all the information is complete and fine; however when I print it, some letters disappear on the left side of the fiel. I don't know How to correct this. I tried with the properties that allows to fields
    expand them in an horizontal and vertical way. But it doesn't work. How can I get a WYSWYG ("What you see What you get") in a print form?... Could be possible
    that it is a Report Builder bug and How I can correct this? or maybe I'm creating the reports in a wrong way... I need help...
    Thank you very much

    Godis-Tei wrote:
    Hi Forum,
    Thanks for the various contributions that are helping my experience with oracle.These are my two current problems:
    1. Assuming I have built a page of payroll for 40 workers that repeats monthly. Is there a way of copying the previous page for last month into this month? Or, do I have to build a new page on the same table and update it?
    2. Please, what procedure should I follow to print a form or a report from the application page?Please ask only ONE question per thread. These issues do not appear to be related in any way, so so the thread is likely to end up an unmanageable, confusing mess.
    Close this thread and open 2 new ones, one for each question.

  • Screen Print and report print in 11g Forms

    Hi,
    I have created a popup menu in forms 11g which has a label print screen.
    When user clicks on it, it is supposed to bring up the list of printers that user has on his PC, so that they can choose the printer where they want to print to.
    Do I need to use webutil for it? or is there any other way?.
    Thanks
    Munish

    If you plan on printing from the client your only options are to use WebUtil or write your own java bean.
    That said, if you are generating the labels using Reports, why not generate to a pdf file? If you coded your form properly, the pdf will open on the client side in something like Acrobat Viewer. If they want to print it they can click on the "Print" button in PDF viewer.
    If you really want to make it complicated and present a list of printers and allow them to pick one then send the job to the printer, this will take some effort. Here are some starter tips assuming the client will always be Windows based:
    You can get the current default printer like this:
    -- More registry info for printing can be found here:   http://support.microsoft.com/kb/102966
    Declare
         rtn_Registry               varchar2(255);
         rtn_defaultPrinter          varchar2(255);
    Begin
         rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
         rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
         message (rtn_defaultPrinter);  -- This is the name of the default printer
    End;Some printer properties and preferences can be called with something like this:
    -- More details here:  http://support.microsoft.com/kb/q189105/
    Declare
         my_cmd varchar2(255);
         rtn_Registry               varchar2(255);
         rtn_defaultPrinter          varchar2(255);
    Begin
    -- Get default printer
         rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
         rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
         -- Printer default preferences
         my_cmd := 'rundll32 printui.dll,PrintUIEntry /e /n "'|| rtn_defaultPrinter ||'"';
         -- Printer properties
    --     my_cmd := 'rundll32 printui.dll,PrintUIEntry /p /n "'|| rtn_defaultPrinter ||'"';     
         -- Printer queue
    --     my_cmd := 'rundll32 printui.dll,PrintUIEntry /o /n "'|| rtn_defaultPrinter ||'"';
         If rtn_defaultPrinter IS NULL Then
              Message('Default printer not detected.');
              Message('Default printer not detected.');          
              RAISE Form_Trigger_Failure;
         End if;
         SYNCHRONIZE;     
         CLIENT_HOST(my_cmd);
    End;The complete list of installed printers can be found in the Registry here:
    <blockquote>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers</blockquote>
    Take a look at this java bean example used to help print to the local printer from Forms.
    <blockquote>http://forms.pjc.bean.over-blog.com/article-6621538.html</blockquote>

  • Problem between SSMS and Report ! Filter query not showing data or showing wrong data

    Hi all,
    In short: I have a report with multiple values such as name of shop, postal code etc. The parameters have no default value and act as "like". If someone enters "krant" he'll get all the shop names that contain "krant" in their
    name etc. 
    Same goes for postal code, if someone enters 2550 he'll get all data for 2550. The problem although is that if a user start with postal code as parameters and leaves the shop name empty, the shop name is not shown in my report! The other way around it works,
    when I enter shop name i'll get all shops + postal code in my report.
    I know this is because POS name cannot be shown in report because it's left blank, but I want my MDX query to be able to give me the POS names even if I only enter postal code.
    Can someone please please look at my query below? I need to add 4 more parameters this way later on too!
    SELECT 
    [Measures].[Sales amount]
     ON COLUMNS, NON EMPTY
    Filter(
                                   [Point of sale].[POS name].AllMembers,
                                   InStr(
                                                   [Point of sale].[POS name].CurrentMember.MEMBER_CAPTION,
                                                   @PAR_POSName
                                   ) > 0
    *Filter(
                                   [Point of sale].[POS postal code].AllMembers,
                                   InStr(
                                                   [Point of sale].[POS postal code].CurrentMember.MEMBER_CAPTION,
                                                  @PAR_POSTAL_CODE
                                   ) > 0
    *[Point of sale].[Client id].[Client id]
    *[Point of sale].[POS id].[POS id]
    *[Point of sale].[POS street].[POS street]
    *[Point of sale].[POS town].[POS town]
    *[Point of sale].[POS housenumber].[POS housenumber]
    ON ROWS
    FROM [mycube]

    You have to use
    StrToMember (MDX) /
    StrToSet (MDX) /
    StrToTuple (MDX) to convert the Parameter; see
    Parameterized Reporting Services Reports with Analysis Services as a Data Source
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • The difference of minor number and instance number

    I study how to develop device drivers. I am beginner. I'm confusing the differece of minor number and instance number what is the exact difference of them???

  • Recursive, hierachical query problem

    Hi! I have a hierachical SQL query using "connect by" that result in the following dataset (simplified to get down to the point): ID       | Parent |   IsData A        |        |    N       A1     |   A    |    N       A2     |   A    |    N        

  • Trouble with camera hook up

    I am trying to hook a JVC GR-HD1 camera to Final cut express HD. I can get the software to control the camera, but I can not see the video. Any ideas. I have tried with HD and SD video. help.

  • About JTextArea and JScrollPane question

    I make a swing program to run a test,a JTextArea can display the test content ,and the content increased continuously,but the vertical scroll bar is always on the top .I want the vertical scroll bar at the bottom at all time so that we can read the n

  • How do i get my ringtones on my new phone?

    i got a new iphone and i need to know how to get my purchased ringtones on my new phone