WEB调用水晶报表ACTIVEX 传参数的问题

在WEB客户端调用水晶报表ACTIVEX来显示带参数的报表,但是ACTIVEX显示报表页面前就弹出一个对话框【请输入报表参数】。为了让这个对话框不弹出来,我想用代码给报表参数赋值。
问题:报表参数赋值的入口在哪里?如何赋值?要有具体代码更好。
请BO技术员或各位高手帮忙,万分感激!----【成都市保安服务总公司】
步骤如下:
-1-引用ACTIVEX控件,
  控制ACTIVEX控件的显示属性
-2-加载报表
Sub Page_Initialize
  On Error Resume Next
  Dim webBroker
  Set webBroker=CreateObject "CrystalReports11.WebReportBroker.1")
  if err.number <> 0 then
     window.alert "The Crystal Report Viewer is unable to create its resource objects."
  CRViewer.ReportName = "890"
  else
    Dim webSource0
    Set webSource0 = CreateObject("CrystalReports11.WebReportSource.1")
    webSource0.ReportSource = webBroker
    webSource0.URL = "http://crystal:8880/businessobjects/viewrpt.cwr?id=890"
    webSource0.PromptOnRefresh = true
    CRViewer.ReportSource = webSource0
end if
--浏览报表
CRViewer.ViewReport
End Sub
**在哪里赋参数值?

你的服务态度还是蛮好的,现在,我把我的问题以及操作说具体一点,麻烦您耐心把我的问题看仔细就明白了:
【只希望斑竹和各路朋友帮忙解决这个问题】
版本:服务器 【专业版 11.0】
BOE SERVER安装环境:windows2003高级服务器, 【Tomcat6.0】平台,oracle10G数据库服务器
1:为什么IE客户端可以用Activex访问报表呢?看我操作:
    登录 InfoView【这个应该晓得吧,是用于浏览报表、做任务计划的管理平台】
   >点击 右上角【首选项】>选择【Crystal Report首选项】
   -->u201C查看我的报表,方法是使用u201D【○-ActiveX 查看器 ○-DHTML 查看器 ○-高级 DHTML 查看器 ○-Java 查看器】
   -->我选择 【○-ActiveX 查看器】
   -->点右下角【确定】
   -->设置完毕,然后点击某一张报表
   -->第一次打开时系统提示【下载ActiveXViewer.cab控件】
   -->下载完毕后,就可以用Activex访问报表了
   -->有参数报表系统会自动弹出输入参数对话框
   >参数输入完毕,【确定】>报表打开。
2:问题:在这种情况下,我在我的WEB业务平台上直接调用【直接连接某一张报表的URI】如:http://服务器名:8080/businessobjects/enterprise11/desktoplaunch/viewrpt.cwr?id=6846&init=actx,但是运行后需要手工输入参数, 你如何在二次开发时把参数赋进去。[activex]
    (提示示:不要再发一些DHTML参数赋值的文件哈,谢谢)
Edited by: m.parker on Aug 3, 2009 3:54 AM

Similar Messages

  • Get Crystal Report XI R2 to work on 64 bit OS (win 2K3) web ActiveX viewer

    Can anyone help me with the issue below, I have been working on this issue for long time and have intensively researched the internet and tried out few solutions but non worked for me.
    <p>
    <b>Overview:</b><br>
    I am working on an application that was build with a classic ASP and VB6 COMs. The COMs load rpt file, this would be the report template, then it loads a recordset into the rpt file and gets displayed on the web page using ActiveX viewer. There are few activities done by the COMs, varying from changing formulas, updating header and footer, suppressing sections to loading data. We are using crystal report XI release 2 with SP4 and application works fully ok on Windows XP and Windows 2003 on the 32 bit OS. Now we are trying to deploy the application on a 64 bit environment and we realise that we can only do this on 64 bit in a 32 bit mode. As we have VB COMs and they can only work on a 32 bit system. So I have done the following in order to enable our application to work and for the reports to run.
    <p>
    1)     Configure the IIS server to run in worker process isolation mode<br>
    2)      Enabling the 32bit mode by running this command <br>
    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 TRUE<br>
    3)     Install our COM application and give the required permission <br>
    4)     Install ASP files with rpt files and give the required permission<br>
    With few attempts I managed to run our application on the 64 bit system using the 32 bit mode, but few reports still fails to display.
    <p>
    <b>Problem:</b><br>
    I am unable to run and/or view crystal reports on a windows 2003 64 bit system.  I have turned on the 32 bit mode so I am able to run COM objects and I am able to run my application and view crystal reports but some reports still fails with no error message. The failed reports display the crystal viewer with no data no page but only the top bar with crystal controls e.g. export, move pages etc.
    <p>
    <b>Analysis/investigation:</b><br>
    I run the same application pointing to the same database as my 64 bit (32 bit mode) environment and run the reports with some data and it worked fine, so I saved the report and tried viewing on my 64 bit environment with simple crystal preview page. Unfortunately it was same result as report came back blank in the viewer with no pages even though if I open that report the crystal application it will show me data saved with it. I have to say on my windows 2003 32 bit system that was fully working, I needed to turn on isolation mode in IIS 6 (i.e. turn off worker processor mode) in order to get all my reports working, otherwise I would get the exact same issue that I have with the 64 bit system. However in my 64 bit system I canu2019t turn on isolation mode, as the 32 bit mode option requires the IIS to be set with worker processor mode or none of the COMs will work.
    <p>
    So please could you help with any suggestion, or solution if possible.
    <p>
    Many Thanks

    Hi Ludek
    <P>
    Let me clarify a bit about the issue we been have:<br>
    For example we have report-1.rpt and report-2.rpt, both are very similar and in fact report-2 have a little bit more information than report-1. So when I install our application on a webserver in Windows 2003 32 bit system, with Crystal Report XI R2 developer edition + SP4, both reports work perfectly fine and application save the report and show it on the crystal report ActivesX viewer. So I made copy of report-1.rpt and report2.rpt with data and kept it a side.
    <P>
    Now I install our application that is the asp files and COM objects on a 64 bit windows 2003 and turned on the 32 bit mode to enable our COMs to work. I then run our application pointing it to the same database I used with the other OS, and I tried to run report-1.rpt and report-2.rpt, so report-1.rpt has failed with the viewer showing but no pages and only the controls. However, the report-2.rpt worked fine with data showing ok. So I copied the 2 reports I generated from the other OS and pointed my view report asp page to these rpt files, again same result report-1.rpt failed and report-2.rpt worked ok.
    <P>
    So I guess what I am trying to say is we are using the exact same COMs on both OS and to generate on both reports, also pointing to the same database using the same connection string. The result is one report is failing on the 64 bit machine.
    <P>
    Now when I try to export/save the report-1.rpt, the report that come with no pages, I get the error below, this is the same error I get if I try to move to different pages.
    <br><br>CRAXDRT Error Occured on Server.70 : Permission denied
    <P>
    Please let me know if I can provide more information.
    <P>
    Many thanks

  • How to use different report viewers (in code)

    When I login to CMC, I can change my default view format to
    1. Web
    2. Web ActiveX
    3. Web Java
    Could I do the same in VS2005 code? If so I would like to see some sample codes.
    Any help is greatly appreciated.

    In code all you have is the equivalent of the Web viewer (DHTML).  To use any other viewer you would need to use Infoview, CMC, or URL reporting (opendocument.aspx).

  • Setting Crystalviewer for all users in CMC

    I am trying to setup Crystal Reports server 2008 VI for my organization. One of the requirement is to disable the Preferences in inoview and set the crystal report viewer to the Web ActiveX control for all users. I was able to disable the preference parameter in CMC -> Allications -> InfoView, but could not find away to set the default viewer for all InfoView users to the activeX control? Is this doable? If so I would like to know how.
    Any help is greatly appreciated.

    Enable preferences and go to Infoview, click oh Preferences and change the view format to ActiveX and save it. Do this for Administrator users.
    There is download available, using that you can make the same change for all users, check the below link.
    Re: Setting the same "InfoView Start Page" to all users in one group
    With that you can change the settings for all users as Administrator, once done remove the access to Preferences.
    Thanks,
    Hari

  • Problem in login to servlet or application with IIS

    Hi
    i Have 2 servers IPS server and NT server, and when i want to connect application web (ActiveX) access in port 8080, who invite us to authentifies the user and Password, and that located in NT server via IIS, tal , then nothing is do , the generic page of the portal is display, but when i call it then second time, this application starts well .

    Hi,
    Try to enable Basic auth in IIS also so as to portal servers Basic authentication to work properly.
    Thanks,
    Raj_indts
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support""

  • OpenDocument Printer button open always the PDF Export

    Hello
    I am using a COM object to pilot the generation of Crystal Reports from Crystal Server using the OpenDocument Viewer.
    From the COM Object I open a new Internet Explorer window with the URL of the report to open and everything is working fine: the viewer is opened, the report generated and displayed on the screen.
    There is only one problem: when I push the Print Button, the Viewer insists to open an Export to PDF window, and I must generate a intermediary PDF file before printing (see picture).
    On the other hand, when I use the View Report from CMC, I get the proper Print dialog box, with all printers and options displayed correctly in the viewer.
    It seems that the OpenDocument viewer is unable to open the Print Dialog correctly and it just proposes me to export before printing, while the direct call to the report from CMC is working as expected.
    I would like to know if this is the normal implementation (so no possibility to open the Print dialog from OpenDocument) or I am missing something.
    Please note that I have done the following:
    1) Setup the correct Printer Option in the Report
    2) Changed the Crystal Reports in CMC -> Preferences -> Crystal Reports and tried all (Web, Web ActiveX, Web Java). None of the settings seems to impact OpenDocument viewer, but they are taken into consideration if I view the report via CMC
    3) Added a couple of fake printers in Crystal Reports Printer List (Application->Crystal Reports Configuration -> Printer List) with no success.
    Any information you can provide me would be greatly appreciated.
    Best regards

    Hello Ludek
    thank you for the hint on the viewer.
    I have seen in some post where it is explained how to change a property in the viewer. In this specific case I do not manage directly a viewer object in the code. I just write down the url in a Internet Explorer process that open the viewer using mainly REST API, something like:
    http://MYSERVER:8080/BOE/OpenDocument/1407242304/CrystalReports/viewrpt.cwr?id=10277
    So unless I can specify the PrintMode via a URL parameter, I cannot interact directly with the Viewer. The COM object is a piece of software that is executed on the user workstation that uses REST API to communicate the commands to the central Crystal Server. I have for example implemented a method to browse the repository using REST and then parsing the resulted XML in the COM object, by creating a local representation of the folders.
    In this way my COM object is like a proxy from a local application and Crystal Server.
    Regards
    Angelo

  • Creating reports in infoview

    Hello! Forums,
                       Can anyone please tell me how to format the crystal reports in InfoView. My report is displayed in crystal report viewer. I cannot see the formatting options like drill, formulas, etc.in this viewer. I tried to set the viewer in preferences section of infoview which gave 3 options 1) web 2)web activeX 3) web java but then also I did not get the options to format or drill or formulas in my cr viewer. Is it anything related to license issue? Please suggest me some references to learn preparing reports in BOE 3.1 step by step.
    Thank You.
    Regards,
    Grace

    For CR reports you need the CR Designer 2008 V1
    For WebI reports you can do that directly in the InfoView or by using the Web Intelligence Rich CLient XI 3.1 (is part of the BOE CLient tools XI 3.1).
    You can look at the documentation found here: http://help.sap.com
    Navigate to SAP BusinessObjects->All products and select either Web Intelligence XI 3.1 SP3 or Crystal Reports 2008 V1
    Regards,
    Stratos

  • An communication error occurred. Printing will be stopped

    Hello,
    For some reason some of our users are getting the following error message when they try to print their reports from Infoview.
    I searched the internet but was unable to find an appropriate answer to this query.
    Could some one please help me with this.
    Here is the error
    Crystal Reports Print Control (Printing is set to Active X)
    An communication error occurred. Printing will be stopped.
    Any help will be highly appereciated
    Regards
    Jehanzeb

    Ok this one is a strange one.
    When I press print button from direct browser it gives me the above error however when I press the  + sign which is on the right hand side of the window (that brings up a new window), it prints fine.
    When I choose Active X for reporting, it prints fine.
    I don't understand why is it not printing with the following options
    Select a default view format:
    Web (no downloading required)
    Web ActiveX (ActiveX required)
    Web Java (Java required)
    Select printing control (for Web):
    PDF (Adobe Acrobat required)
    ActiveX one-click printing (ActiveX required)
    If the above is selected (selection shown in bold) under Infoview, it doesn't print.
    However if I choose the following option in Crystal Infoviewer Preferences, it works
    Select a default view format:
    Web (no downloading required)
    Web ActiveX (ActiveX required)
    Web Java (Java required)
    Select printing control (for Web):
    PDF (Adobe Acrobat required)
    ActiveX one-click printing (ActiveX required)
    This one after installing Active X, works fine.
    What is the problem and how come suddenly it stopped working?
    I have no idea.
    Anyone having the same issue with printing from Infoview?
    Any help, advise, suggestion will be welcomed.
    Oh and I have checked the ActiveX Addons under Internet Explorer and they are working fine.
    Regards
    Jehanzeb

  • Flash 10 Installation fails

    I am trying to install flash player 10 on Windows XP with Internet Explorer 8 and it fails.
    I've tried different installation methods. The web (ActiveX) installation fails.
    I tried "Flash Player 10 ActiveX.exe" or install_flash_player_10_active_x.msi
    I receive the error  "Die Installation von Adobe Flash Player ist fehlgeschlagen. Hinweise zur
    Fehlerbehebung finden sie unter http://www.adobe.com/go/tn
    _19166_de"
    This points me to a support document, that explains me how to uninstall
    the flash player. This procedure results in the same error message again.
    Would be nice if someone could help me.

    To B Wolfe
    It's encouraging to know that you are trying to solve the problem. I am having the same problem.
    Unfortunately I followed the instructions in the Troubleshoot (ID tn_19166) and uninstalled my previous version (which was woriking fine by the way). Now I have NO Flash Player and cannot seem to get an answer as to how to install.
    I keep getting a message "Adobe Flash Player Active X setup failed to Install. The details stop at the registration point.
    Is it possible to download an earlier version f flash player (Version 9 perhaps), with an older version of the Active  X setup? Would that solve my problem for the moment? At least I would have something. I am not a novice, but I am not a programmer so I am not comfortable playing around with the Registry at you suggested at one point.
    This is incredibly frustrating. From reading the forum issues, this is NOT an uncomon problem. It sounds to me that The flash 10 Installation protocol is faulty. Perhaps Adobe should make an exception and provide phone support or even remotely log on to the customer's computer to help with the installation.
    Is it possible to install from a CD? Is one available?  Would that solve the installation problem? If so where can I get one?

  • Unable to print crystal report over web using ActiveX Control

    Post Author: jimmyp
    CA Forum: General
    We have a problem with printing crystal report over web using ActiveX Control.  When clicking print button, it only shows a blank dialog web crystal viewer page without any error.  The page just simply hangs.  We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE.  It still does not print.  Does anyone know why?  
    Environment.
    Bundle Crystal Report v10
    Asp.net 2.0
    IE 6.0 or higher.
    Appreciate for your help.
    Jimmy

    Post Author: Ian Kulmatycki
    CA Forum: General
    A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
    -ian
    When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
    "A communication error occurred, printing will be stopped."
    How can this error message be resolved?
    Resolution
    This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
    This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
    Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
    Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
    For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
    ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
    This issue is addressed in the following components (and later versions):
    PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
    ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
    WebReporting.dll, version 10.0.5.785, dated 8/25/2004

  • ActiveX Control recording but not playing back in a VS 2012 Web Performance Test

    I am testing an application that loads an Active X control for entering some login information. While recording, this control works fine and I am able to enter information and it is recorded. However on playback in the playback window it has the error "An
    add-on for this website failed to run. Check the security settings in Internet Options for potential conflicts."
    Window 7 OS 64 bit
    IE 8 recorded on 32 bit version
    I see no obvious security conflicts. This runs fine when navigating through manually and recording. It is only during playback where this error occurs.

    Hi IndyJason,
    Thank you for posting in MSDN forum.
    As you said that you could not playback the Active X control successfully in web performance test. I know that the ActiveX controls in your Web application will fall into three categories, depending on how they work at the HTTP level.
    Reference:
    https://msdn.microsoft.com/en-us/library/ms404678%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    I found that this confusion may be come from the browser preview in the Web test result viewer. The Web Performance Test Results Viewer does not allow script or ActiveX controls to run, because the Web performance test engine does not run the, and for security
    reasons.
    For more information, please you refer to this follwoing blog(Web Tests Can Succeed Even Though It Appears They Failed Part):
    http://blogs.msdn.com/edglas/archive/2010/03/24/web-test-authoring-and-debugging-techniques-for-visual-studio-2010.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Submit button in Web Dynpro Native and ActiveX tab

    We use LiveCycle Designer 7.1 in a SAP environment (CRM5.0/NW2004S 7.0.06). We are creating an online Interactive Form via Web Dynpro for Java using NW2004S.
    In NW2004 you have to possibility to select the 'Submit to SAP' button from the Web Dynpro tab. However, in NW2004S this has been changed into 2 submit buttons, one on Web Dynpro Native and one on Web Dynpro ActiveX tab. Does somebody know what the differences are compared to NW2004? When to choose what button and what kind of code you need to enter to send the data the SAP?
    kind regards
    Angelique Heutinck

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • Adobe: ActiveX vs Native in web dynpro

    Hello,
    has there recently (the last week or so) been an update on Adobe Reader or windows xp that makes the adobe forms not work anymore with web dynpro?
    Last week i had a simple form (activeX) in my web dynpro that was working fine. The form had two buttons (activeX), and on clicking the button they set a context attribute to BUTTONONE or BUTTONTWO and then they fire the webdynpro event; In my web dynpro i then check if the context attribute is BUTTONONE or BUTTONTWO and take an action depending on the button clicked. This was working fine, but now it doesnt work anymore.
    When i change the buttons to native buttons and change the uielement of adobe to native in my developer studio, it is working again..
    Why doesnt the activeX work anymore? The activeX buttons dont even fire an event in my webdynpro. All is configured correctly, because it worked before.
    Another thing that doesnt work is the following. Binding the adobe form to the context and then an inputvalue on the form. Setting the value in webdynpro passes the value to the form, but changing the value in theform, doesnt pass the value to web dynpro, so webdynpro still has it's old value in the context.
    I hope someone knows why simple things are not working.
    Kind regards,
    J.

    Hi Joren,
    Usually this is due to missing or something wrong with the ACF. I suggest to first check in your Windows Control Panel to see if the ACF is installed. If it is there but somehow still doesn't work, try to uninstall it and install the ACF again (make sure to install the ACF which is for your NW release and SP, refer to note 766191 for detail).
    BTW, native forms should be the way going forward to. Perhaps you should actually stay with native forms unless you have special reasons to use activex forms.
    Regards,
    Marc

  • I want to run a form on web which contains activex

    can any one help me, how can i run a form on web which contains
    the activex control created with vb.
    according to activex, it has to register with the system
    registery. but in case of web what can i do?
    please help me if any one know the answer.
    thanks in advance.
    Sudhakar-D

    If your active X has a visual component then you can't run it
    inside forms on the web. If it is only running in the backend you
    can use OLE2 Package to activate it on the server.
    You can try and use Java Beans instead of your ActiveX they will
    work in forms.
    If your activeX can be embeded in an HTML page, you can call the
    HTML page using web.show_document.

  • Can I insert ActiveX controls in Web Dynpro Java?

    We want to insert ActiveX controls in Web Dynpro 7.3.
    Is it possible?

    Using the WebWidget UI element you can insert any HTML and JavaScript code but this does not guarantee that your special ActiveX control will work correctly.

Maybe you are looking for

  • Query in Search Help

    Hi Gurus, we have a custom elementry search help. It uses a view , which is a combination of 5 tables. Now I need to change the logic of this search help as below. If there are entries found in 1st table with combination of a 6th (another table) tabl

  • How to process Sessions

    Hi,   I Would like to know how to process sessions. Regards, Prasad

  • JEditorPane Not Reading Quotation Marks or Apostrophes from HTML

    Hi folks. I used the following code to create and populate a JEditorPane:           try                pane = new JEditorPane("file:///c:/OverviewDocument.htm");           catch(Exception e)                System.out.println(e);           JScrollPane

  • USB Drive not downloading software for Camera and other new devices - HP Desktop G5418uk

    Product:- HP Desktop G5418uk Operating system:- Windows 7 Error message:-Installing Device Driver Software - followed by - Device Driver Software was not succesfuly installed, no Driver found.  I purchased a new Creative Plug and play WebCam which I

  • Activity type calculation

    Hi all Can any body told me how to calculate the Actual activity price calculation. Please let me know the details configuration as well as how its work Regards Ansuman