Report Print & Export Issue (File Download Box appears)

We send a URL to Crystal Enterprise which runs a script, logs on, finds folder, finds report and displays in the Crystal report viewer. All that works fine....
However, when you select the print icon or the export icon a Windows Internet Explorer box to select page range etc. and then when you say OK, you recieve a File Download Box asking to Open/Save/Cancel one of the following:
Print - Name: CrystalViewer.pdf, and Type of pdf_auto_file
Export - Name: CrystalViewer.rpt, and Type of CrystalReports
I have no IDEA what he is trying to do but he sure ain't printing.  I can only assume that I have a missing part that he is trying to download at the time of print/export. Or that there is something set in the script that is killing me...
  Sub ViewReport( iStore, id, token)  
  URI = "./viewer/en/viewreport.csp?id=" & id & "&token=" & token & GetPrompt
   Set viewer = Server.CreateObject( "CrystalReports.CrystalReportViewer" )
   Set rptFactory = iStore.EnterpriseSession.Service("", "PSReportFactory")
   Set rptSource = rptFactory.OpenReportSource(CInt(id))
   ' Set the viewer's properties to prepare it for viewing.
   With viewer
      .ReportSource       = rptSource
      .EnterpriseLogon    = iStore.EnterpriseSession
      .URI                = URI
      .ISOWNPAGE          = TRUE
      .ISOWNFORM          = TRUE
      .HasPrintButton     = TRUE
      .ISDISPLAYPAGE      = true
      .isdisplaytoolbar   = true
      .isDisplayGroupTree = true
      .GroupTreeWidthUnit = 1
      .GroupTreeWidth     = 17
      .HasRefreshButton   = true
      .HasExportButton    = true
      .ParameterFields    = GetParams
   End With
    If Err.Number <> 0 Then
      'There was an error setting up the viewer.
      Response.Write "<p>Unable to create report viewer. " & Err.number
   Else
      'Process the request and launch the viewer.
      viewer.ProcessHttpRequest Request, Response, Session
      'viewer.refresh
   End If
End Sub
Help me???

Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

Similar Messages

  • File Download box appears despite content being text/html .....

    Hi
    I am supporting a set of web pages which display data to the user based on XML transformed by a set of style sheets. Currently when the user does something and fires the doPost method we get the "File Download" box appear with the message "Some files can harm your computer .................... ". The downloaded file is just the HTML used to display info to the user (with the appropriate embedded stuff from the stylesheet)
    I was under the impression that this dialogue box only appears when the content type is not understood by the browser. However, the content type is text/html ... so i am a bit stumped.
    can anyone suggest other ways in which this message can appear?
    cheers
    chris

    Just on the off chance anyone else ever has this problem and fins this post ( the problem was solved a long time and i forgot to update the post).
    The application in question attempts to log into a database via OC4J. The connection information in the data-sources.xml file was incorrect (specifically the database listener port). This was generating some bizarre exception which was propogated up and resulted in the above behaviour. I suspect that you could get the same effect thogh for many other reasons, so if you are having this problem i wouldnt get too hung up on this as a possible cause,.

  • File download box does not appear when trying to download adobe

    As I was unable to open any pdf documents i uninstalled & tried to reinstall adobe however nothing happens, the file download box doesn't open at all. I'm using windows 7 home premium. Anyone got any suggestions, could there be something causing this in my computer?

    Use the offline installer from http://get.adobe.com/reader/enterprise/

  • Downloads such as adobe flash update won't download even when anti virus is disabled. The download box appears and runs but doesn't show anything.

    Any updates or downloads won't download in Firefox. The download box appears, goes thru the motions but doesn't park anything in the file. I usually have to quite Mozilla, use Explorer for the download, such as Go to Meeting, or Adobe updates. Can't download anything with Firefox from your browser.

    I am having the same issue -- IE7, XP SP3... Flash Player
    will not download or install, but will download and install for
    Netscape. Must be an IE7 issue, but I can't find a solution. If you
    find something out, it would be freat!
    ([email protected])

  • ******Why couldn't File Download Box pop up???

    Hi all,
    I want to use applet to call the IE' file download box which does the csv download job.
    Here is my idea:
    First, click the menu of applet to call the servlet
    Scecond,call the IE file download box by this servlet invoked by the applet.
    The following code snippets intend to show the file download dialog:
    String fileName = "test.csv"
    response.setContentType("APPLICATION/OCTET-STREAM");
    response.setHeader("Content-Disposition", "attachment; filename=\""+fileName+"\"");
    unfortunately, the box didn't show!!!:-(
    One thing can be clear that with the IE or NetScape supported ,the file download dialog can be raised by writing the code above.
    I wanna make two things clear:
    No1:Is it true the file download box is part of function of the browser?
    No2:Is there any solution to this problem?
    Thanks a lot!

    it happens with the keyboard disconnected. I was surprised it booted up without going through the user screen so I didn't have to enter my password.
    and on another note, I'm sure it's obvious, but how do I boot up from my external drive with my imac? the other day when I was having serious issues while trying to fix this problem, I was unable to boot from my install disc
    thanks so much for your time

  • Force flash to open file download box in front of the flash movie

    Folks,
    I'm making a dvd title using flash to auto start when people
    pops the dvd disc in.
    I have a button 'Click here to download the movie' and
    clicking the button should pop up a file download box so people can
    save the movie file(.mov) to their desktop.
    Problem is that the file download box shows up behind the
    flash movie so people won't be able to see the download box since
    it's hidden behind the flash. This is critical since I intend the
    flash to open as a full-screen mode.
    Is there a way to force the flash to open the download box in
    front of the flash movie?
    I tried getURL and fscommand ("exec", "filename.exe") and
    even fileReference commands to try different way of linking the
    movie file, and they all open download box behind the flash.
    Please help~~~

    Please do not post the same topic in multiple forums. The
    only thing I can suggest is when they click on the button to
    download, you take flash out of full screen while they download the
    video, you can use fileReference to control and monitor the
    download. Use a listener object to monitor when download is
    complete, then set flash back to full screen.
    How are you scripting the full screen?

  • I am unable to download items. The download box appears, but nothing populates. This is urgent.

    I am unable to download items. The download box appears, but nothing populates. This is urgent.

    Usually the web mail server and the IMAP or POP server are two different things. Have you contacted your provider and ask them why their server is giving you this message.

  • Export Save / Open dialog box appears behind disco screen

    Hi all
    Disco 10g Plus, excel, latest Sun java 6.16 jvm
    We have an annoying but strange issue with exporting.
    A user opens and runs a report ok.
    Withing Disco 10 plus they then click on either file-Export-excel or click on the Export Excel icon on disco plus toolbar
    Either way the export happens and a dialog box appears with blue progress bar and then this disappears.
    And then nothing appears to happen.
    However, something actually has happened, behind the disco 10 window the 'File Download' dialog box with 'Do you wish to open or save this file?' appears. Clicking on save saves it to PC and clicking open opens it in Excel which is fine.
    I am not sure of this box belongs to excel or internet explorer but does anyone know of any way to have this dialog box appear IN FRONT of the current disco plus window as some of our users think that disco has 'frozen' and thus log support calls.
    thanks in advance,
    dw
    Edited by: derrywriter on Sep 30, 2009 2:40 PM

    Hi dw
    I have heard of folks complaining that exports to Excel hang. I have not had any feedback to say that the dialog box is actually open behind the scenes. This is very interesting news and thanks for reporting it. I will certainly look for this in the future and see if I can find a pattern.
    If I may ask, what exact version of Discoverer are you on and what cumulative patch level have you implemented?
    Also, what browser are you using and have you tried this in another one?
    Have you tried deinstalling Java 6.16 and tested with an older one like 6.11 which I have seen working very well?
    As much extra information as you can provide will definitely help and could trigger an idea from someone reading.
    Best wishes
    Michael

  • I open a donwloaded file from an e-mail and a file conversion box appears.The characters are all wierd.

    I can not open a downloaded file from an e-mail or off the web w/o a file conversion box popping up.It shows options to open with msoffice word but I choose that and it opens with all the characters that are weird looking. There is also the issue where every time I open up Mozzila there are portions of advertisements that look like they are in Japanese. I go to the View in the top bar then select Character Encoding.The unicode is selected so I switch to Western (ISO-8859-1) and everything is normal. I close the browser and restart and it goes back to the way it was with the Japanese looking text.

    You can convert the PDF text to regular text (.txt) and then import/open into another program and make your changes, then save the file in the programs format (for your later editing) and then choose Print from the program and there may/may not be a option to save as PDF again.
    You'll need a free (limited use) PDF to text utility like
    PDF OCR
    http://solutions.weblite.ca/pdfocrx/
    Trouble here of course is you lose all the formatting and have to reformat, but it's a lot less expensive than Adobe's software.
    LibreOffice is free to use and can save as PDF format if iWork doesn't save as PDF, it should unless Apple is really peeved at Adobe.

  • Crystal Report Printing - A4 Issue

    Hello Experts,
    One of our customers use third party rental add-on with SAP B1. The add-on has cyrstal reports files. All these reports are set to letter size by default in report page setup. Client does not to print in A4 .
    When the user clicks on Print Preview / Print Icon on  rental order the , the report loads, but when sent to Printer for printing it becomes A4 (It should be letter).
    The rental reports works fine on the SAP Server, meaning when sent to printer it goes as Letter size which is what we want but this does not happen at Client's machine's.
    Also , i have an add-on running on my local machine and the reports prints in letter size with out any issue. I have been searching online regarding this issue but i haven't found any solution.
    Can any one advise me on this issue. Is there any setting that i can do in crystal or printer ?

    Is the default page size for the client's printer set at Letter or A4?

  • Crystal Report print to PCL file needs to contain searchable text

    Hi,
    I am using VS(2005) and Crystal Report XI R2 .net Service pack 4.  I need to be able to create a pcl file that contains text information on the first page that needs to be parsed and read by another application.  However, I am not able to use a generic/text only pcl driver to do this because the remainder of the report (page 2 on) needs to contain lines and table borders as if it were printed to paper from the printer.  The report/print to file driver I have configured will produce a pcl file that meets my requirements when I print from Crystal XI R2 but when I use either the .Net view or I print directly form code all of the text in the pcl file is contained in an image. 
    Any suggestions on ways I can resolve this issue are greatly appreciated.
    Greg

    The CR.NET uses the .NET Framework print service for sending the output to the printer itself, where the page is sent as an image.  There's no way to alter this behavior within CR.NET.
    This is problematic for your task, as well as for tasks that rely embedded fonts or text strings (such as phone dialers, faxes, printer fonts, etc).
    Whatever you do, you'd have to do outside of CR.NET
    Sincerely,
    Ted Ueda

  • Dunning Report Print Layout Issue

    Hi
    I have a problem with the Dunning Report Print layout (Dunning All (system)). In the wizard I select all the Invoices (Which are over due and current) for the BP and sent to printer.
    In the print out all the due dates are mixed with the acctual Due dates.
    Acctuall Invoices
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     25.02.08              1
    10002                     03.03.08              1
    10003                     03.04.08              0
    Print out
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     03.03.08              1
    10002                     03.04.08              0
    10003                     25.02.08              1
    How can I fix this. This is coming from the System template and we havent change anything.
    Could you please help me.
    Thanks
    Sanjaya

    Hi
    I solved the problem. But the issue was when i ran the dunning wizard the layouts messed up. For example if I had a dunning letter with 3 lines (overdue documents). The last line would copy itself 4-6 times (it would show the last document 4-6times so the total lines in the dunning letter would be 7-9 lines). But I solve the issue. Somehow the attention person (which I got from the contact persons (ocrp) and not from the document contact person (oinv) ) did the issue. When i switch it to the oinv the issue was gone.
    kind regards
    Søren
    Edited by: Bundgaard Søren Hollænder on Jan 26, 2009 9:56 AM

  • Need to Automate a Report to Export to File in CR9 Developer

    Post Author: KJ7
    CA Forum: General
    Hi... I'm not even sure if this is possible. I've got a fairly basic report - a control table with a key field that links to another table "work orders" with a primary key... from there, I have a few other tables (client, project, rooms, etc.) with ancillary keys which link back to that secondary table & give supporting information/details.
    I need to run this report nightly - which basically gives me the daily schedule by work order - and export the file to a file location as a CSV (ideally with "|") as the character separator (but tabs are OK too). 
    I've got the developer version of CR9 - because that (CR9) is what the other software we're running our SQL server utilizes to run the software is compatable with. 
    Can anyone out there tell me if what I need to do is even possible? (I'm not sure I an upgrade is an option).
    Thanks so much!
    ~Kara

    <p>Check this post in forum</p><p><a href="/node/1952"><font color="#048ed9">Handling CSV files from Crystal 10</font></a></p><p>Rahul</p>

  • Unwanted File Download box in JSF - Problem while Saving State.

    Hi,
    I am having a situation wherin there are multiple command links dynamically generated in a dataTable.When I click on any one of the links a file download dialogue pops up to save/open a pdf doc.Irrespective of any operations on the download dialogue, if I click on anyother link (i.e this is the 2nd click on tat page)
    then the file download doesnt pop up and instead the page is refreshed.
    On the 3rd click , the file download again pops up.
    The code in the action method of the command link goes like this
    public void showPDF() {
    byte[] pdf = // gets the data from another place.
    FacesContext faces = FacesContext.getCurrentInstance();
              HttpServletResponse response = (HttpServletResponse) faces.getExternalContext().getResponse();
              response.setContentType("application/pdf");
              response.setContentLength(pdf.length);
              response.setHeader("Content-disposition", "attachment");
              response.setHeader("Cache-Control", "cache, must-revalidate");
              response.setHeader("Pragma", "public");
              try {
                   ServletOutputStream output = response.getOutputStream();
                   output.write(pdf);
              } catch (IOException e) {
                        log.debug("IOException in viewPdf: " + e.toString());
         faces.responseComplete();
    }To fix the above problem ...I have included the following 2 lines of code just before invoking the responseComplete() method :
      StateManager stateManager = (StateManager)    
                                                                    faces.getApplication().getStateManager();
         stateManager.saveSerializedView(faces);This solves the above problem but causes another problem for which I need help :
    There is a value change listener in my jsp.When I change the value in a drop down list in the same page, the file download dialogue is poping up. which shuld only pop up when am clicking any one of the command links.
    I debugged thru the code and found out that after the value change listener action method is finished executing it jumps and executes the above showPDF() method.
    Seems its something to do with saving of the client state.
    It will be of great help anyone can advise on this.
    Thanks
    Archan

    Hi,
    I am having a situation wherin there are multiple command links dynamically generated in a dataTable.When I click on any one of the links a file download dialogue pops up to save/open a pdf doc.Irrespective of any operations on the download dialogue, if I click on anyother link (i.e this is the 2nd click on tat page)
    then the file download doesnt pop up and instead the page is refreshed.
    On the 3rd click , the file download again pops up.
    The code in the action method of the command link goes like this
    public void showPDF() {
    byte[] pdf = // gets the data from another place.
    FacesContext faces = FacesContext.getCurrentInstance();
              HttpServletResponse response = (HttpServletResponse) faces.getExternalContext().getResponse();
              response.setContentType("application/pdf");
              response.setContentLength(pdf.length);
              response.setHeader("Content-disposition", "attachment");
              response.setHeader("Cache-Control", "cache, must-revalidate");
              response.setHeader("Pragma", "public");
              try {
                   ServletOutputStream output = response.getOutputStream();
                   output.write(pdf);
              } catch (IOException e) {
                        log.debug("IOException in viewPdf: " + e.toString());
         faces.responseComplete();
    }To fix the above problem ...I have included the following 2 lines of code just before invoking the responseComplete() method :
      StateManager stateManager = (StateManager)    
                                                                    faces.getApplication().getStateManager();
         stateManager.saveSerializedView(faces);This solves the above problem but causes another problem for which I need help :
    There is a value change listener in my jsp.When I change the value in a drop down list in the same page, the file download dialogue is poping up. which shuld only pop up when am clicking any one of the command links.
    I debugged thru the code and found out that after the value change listener action method is finished executing it jumps and executes the above showPDF() method.
    Seems its something to do with saving of the client state.
    It will be of great help anyone can advise on this.
    Thanks
    Archan

  • Crystal Reports Excel Export Issue - page footer not being displayed

    We recently converted all Crystal Reports from Visual Studio 2003 to Visual Studio 2005 sp1, .NET 2.0, Crystal Reports for .NET.  I have the latest merge modules from business objects.  All reports & footers worked fine in VS2003 ... but now when I export to PortableDocumentFormat (PDF) or WordForWindows (DOC) the page footers appear correctly.  But, when I export to Excel (XLS) like the code below, the page footers do not appear.  We need to place a disclaimer at the bottom of every page of an exported excel document.  I checked the print preview, and I tested printing the document ... the the footer is not being utilized properly by the Crystal Reports export.
    System.IO.MemoryStream oStream = new System.IO.MemoryStream() ;
    oStream = (System.IO.MemoryStream) report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel) ;
    Response.Clear() ;
    Response.Buffer = true ;
    Response.ContentType = "application/vnd.ms-excel" ;
    Response.BinaryWrite(oStream.ToArray()) ;
    Response.End();
    I have asked the question in msdn forum
    http://forums.msdn.microsoft.com/en-US/vsreportcontrols/thread/0ead9e34-bc45-4062-90dd-17f8f8ebf062

    fyi - if i hadn't mentioned it, problem occurs in all our environments (developer workstation, development server, testing server, production server, etc.)
    on my development workstation i found the file 3 times
    c:\program files\common files\business objects\1.0\bin\crxf_xls.dll
    has file version 9.1.1.557
    c:\program files\common files\business objects\2.7\bin\crxf_xls.dll
    has file version 10.2.0.1093
    c:\program files\common files\business objects\3.0\bin\crxf_xls.dll
    has file version 11.0.0.1937
    on my development server (and our other environment servers too)
    c:\program files\common files\business objects\2.7\bin\crxf_xls.dll
    has file version 10.2.0.1210
    so just from that i notice that the file versions in the 2.7 bin are different from my developer workstation to my development server ... but the issue still occurs in both places.

Maybe you are looking for

  • Connect & View

    How can I connect my TV to my iMac G5? That way I can use my TV for presentation. Also I can watch TV on my computer

  • Power View in Office 365 vs. Power View in SharePoint

    Hi all, I am trying to find the best method to get PowerView reports into Dynamics AX. So far, I've simply created a form as ActiveX and navigated to the link to the excel file, but this is not desirable. I read that it is possible to have them embed

  • Acrobat Pro 9 Crashes

    APro9 has not worked from the initial install of CS5 and not even a brand new computer (Core i5 3.1 GHz) and new OS (10.7.1) or reinstalls have made a difference in fixing it. Nor have all the tedious updates from 9.0 through 9.46 done a thing. And t

  • Monitoring problem in async SOAP receiver adapter

    Hi! I have a File to SOAP asynchronous scenario. I want to see in monitoring (sxi_monitor) if problem occured when calling the webservice, for example when the connection is refused, or a timeout. In Runtime Workbrench, I can see the errors in Commun

  • Horizontal scrolling column view

    With ther now being no "always visible" scroll bars in Lion, how the heck are we supposed to scroll horizontally in column view when using a device such as a tablet? Is this a MAJOR MISS in terms of usability? Why would there not be a scroll bar visi