Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Karen Wideen 1 post 71 karma points
    Jul 20, 2018 @ 18:33
    Karen Wideen
    0

    Running crystal reports on page

    The person that created a template is no longer with our company. The template includes code that works with a crystal report. I am trying to add a new report by copying a section of code from an existing report and hanging the ID numbers. The page displays, but the file is not downloading. Here is the code I am using.

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion-2" class="collapsed" href="#collapseOne-80"> <i class="fa fa-fw fa-plus-circle txt-color-green"></i> <i class="fa fa-fw fa-minus-circle txt-color-red"></i> <span style='font-size:15px;font-family:"Open Sans",Arial,Helvetica,Sans-Serif;font-weight:bold;text-align:right;'>Lincoln Representative Numbers </span> <span class="nonbold">- Description here</span> </a></h4>
                </div>
                <div id="collapseOne-80" class="panel-collapse collapse">
                    <div class="panel-body">
    
                        <!-- tab 80 content -->
    
    
    
                        <p> Please wait while the report is generated. The file will be downloaded. </p>
    
                        <div class="row">
                            <div class="col-md-12">
    
                                <div id="options80">
    
    
    
                                </div>
    
                                <div id="backbutton80" style="display:none">
                                    <div class="row">
                                        <span onclick="javascript:ToggleOptions('80', false);" class="btn btn-default pull-right"><i class="fa fa-angle-double-left fa-lg"></i>Close Report</span>
                                    </div>
                                </div>
                                <div id="report80" style="display:none">
                                    <div class="row">
                                        <br />
    
    
    
    
    <iframe id="iframe80" src="" style="border:0px #FFFFFF none;" name="iframe80" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="800px" width="100%"></iframe>
    
    
    
    
                                    </div>
                                </div>
    
    
    
    
    
    
                            </div>
    
    
    
    
                            <!-- end tab 80 content -->
    
                        </div>
    
    
                    </div>
                </div>
    
    
            </div>
    
    
    
    
    
    
    
    
                      case "80":
    
    
                                var formdata = {};
                                var api = new window.PostApi();
    
    
    
                                var xyz = '@Session["XYZ"]';
    
    
                                var crd = '@Session["UNBRANCHCRD"]';
    
                                if (crd == "") {
                                    crd = '@Session["UNENCRYPTEDCRD"]';
    
                                }
    
    
    
    
                                formdata = { "crd": crd, "xyz": xyz };
    
                                $("#spinnercustomclients").show();
    
                                api.Send({
                                    type: "POST",
                                    url: '@Url.Action("Lincoln_Representative_Numbers", "Crystal")',
                                    async: false,
    
                                    success: function (passfail) {
    
    
    
                                        $('iframe#iframe80').attr('src', passfail.Url);
    
                                        $("#spinnercustomclients").hide();
    
                                    },
                                    error: function (xhr) {
                                        if (!xhr) {
                                            alertDialog('Cannot find rep41a');
                                        }
                                        try {
                                            alertDialog('Cannot find rep41b');
                                        }
                                        catch (e) {
                                            alertDialog('Cannot find rep41c');
                                        }
                                    }
                                }, formdata);
    
    
                                break;
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies