Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

PrinterName isn`t selected correctly in Crystal Viewer

$
0
0

Hello,

 

we are using VB.NET 2015 and CR2013 to built reports for our customer application.
In our report designer we selected the "NO Printer" Option, because we do not know which printer our customers have!

 

In our VB6 Application we select the printers by name, e.x. \\Server\Printername and then open the crystal viewer for previewing the report. When now the printer button in the crystal viewer application is selected, the selected printer isn`t selected automatically in the crystal viewer window.

 

What we want to achieve is that the selected printer in the vb6 application is given correctly to the .net application in which we open the crystal viewer for previewing the report. Any suggestions to achieve this?


Text alignment problem in visual studio 2013 community edition (CR "CRforVS_13_0_16"Version)

$
0
0

Text alignment Problem

 

We are set To Text alignment centre  and Right but that text align to Left automatically.

"Page n of m" in English OS and "n / m" in Japanese OS.

$
0
0

Hi

 

I installed SAP Crystal Reports runtime engine for .NET framework4(64bit) into English OS and Japanese OS.

 

English OS

   -WindowsServer2012 Standard Edition

   - SAP Crystal Reports runtime engine for .NET framework4(64bit)

     version 13.0.1.220

 

Japanese OS

   -WindowsServer2012 Standard Edition

 

in English OS, special field "page"   appear as "Page n of m"

but in Japanese Os, it appears as "n / m".

 

I don't know why it happens.  Do you have any idea?

 

 

Best Regards

Reiko

Print and Export issue

$
0
0

Hello,

 

Info:

 

I have,

  • Windows 7 64-bit
  • Microsoft Visual Studio 2012 Ultimate Update 5.
  • SAP Crystal Reports, version for Microsoft Visual Studio version 13.0.16.1954
  • SAP Crystal Report runtime engine for .Net Framework (64-bit).
  • IIS version 7.5

Installed.

 

I am working on 2 projects:

  1. .Net Framework 4.0 C# project.
  2. .Net Framework 4.5 C# project.

 

Issue:

 

The Print and Export functions are running smoothly for the first project (.Net Framework 4.0) but they don't for the second project (.Net Framework 4.5)

I just got the popup menu with the different available formats but when I click the last (Export or Print) button, I got nothing saved or printed.

 

 

Thanks in advance,

Alaa

Failed to open the connection with pull crystal report 10 VS 2010

$
0
0

I Have issue with my existing visual studio application whihc was developed in VS 2005 framework 2 and sql 2005. later that was migrated to vs 2008 and now to visual studio 2010 with any CPU option and framework 4. Now it shows issue as in the question, while generating all pull reports from the application whereas my push reports are working perfectly. pleae note that only the framwork and VS has changed whereas my crystal report (10 for pull) or sql server 2005 has not been changed.

 

The report is populating in design mode with crystal 10 and and its DSN. however application has the code to do the auto creation of DSN and seems that also creating as all these while it was working.

 

Please help me to sort out this...

Crystal Report runtime SP16 issue with column alligment.

$
0
0

Hi all,

 

I have issue with latest version of runtime, when report is designed in Visual Studio and look at preview everything is correct. Once file is opened in web viewer and column alignments are completely different. Looks like columns are moved with one column to the left

 

DesignPreview.png shows how it's suppose to be and WebPreview.png shows how is actually is on web.

Is the 'Same as Report' option still available in the 'Set Datasource location' option?

$
0
0

I am currently using CR 13_16 designer and CRR 13_16 run time MSM, and VS 2013. In the past I used the 'Save with Report' option in Database, 'Set Datasource location', right mouse-click on 'Database Name' and select 'Same as Report' from the drop-down menu. After this I placed the DB files in the same directory as the Reports, this worked perfectly using an older version of the above noted products. After upgrading to my present products I was unable to get this function to work. Upon posting a question here on this forum, I was informed that this feature no longer worked. Recently I saw some discussion in which this feature was given as a recommendation for solving a DB connection problem. Upon checking, I find that all of the settings for implementing "Same as Report' still exist in the designer. I am hopeful that this feature has been given new life and I will be able to return to the one click, 100% reliable solution that it offered.

Crystal reports viewer error on app-v client

$
0
0

Hi all,

 

We have a .NET client application that incorporates the Crystal Reports Viewer, version 2013.

 

When we deploy to a Windows client or server (Windows7, 8, 10) everything works fine. We can start reports without problems

 

We have two customers that use App-V to deploy the application. One of them encounters this problem:

 

As soon as we try to open a report, the application runs into this error:

"The data area passed to a system call is too small"

 

Attached is a screenshot of the error (partly in Dutch)

 

Any suggestions on where to look for a solution? We don't have App-V expertise ourselves.

 

 

Thanks in advance,

 

Will de Haan


Crystal Reports Version 13 Runtime Error

$
0
0


Hello,

I have created a windows VS 2013 application to run a crystal report and save it as a pdf.  I have compiled it under 32-bit, .NET Framework 4.0.

The app runs fine on the development machine.  I have installed Crystal Reports runtime, CRforVS_redist_install_32bit_13_0_15 on a client machine then I tried running the windows application on the client's machine after installing it on the client machine. I verified that the Crystal Runtime was installed on their machine.  I receive the following error when I try to execute the windows application.  Can someone provide me with any insight as to what to look for or what needs to be corrected.  Thank you.

CrystalReportsError.png



   
 
 
 
 
 
 
 
 
 
 
 





Error Message: WebResource.axd and ReferenceError: WebForm_InitCallback is not defined

$
0
0

Hi Crystal Experts,

 

I just chatted with a customer who is getting the following error messages. After arduous research through the blogs, I could not confirm a solution so I decided to post a new thread. Forgive me if this is already mentioned somewhere else. I understand there can be different combinations of issues.

 

The customer's local machine is running on Windows 7. Their Server OS is Windows XP. They are running CR 2008 and VS 2012 as the IDE.

 

The issue is that the reports work locally on his machine but once the files are uploaded to the server, the reports come back blank. I've included a snapshot from the customer.

 

Attempted solutions: Installation of SP16 64 bit but problem still remains.

 

Can anyone shed some light on this for me please?

 

 

All the best,

Valerie Rose Cadag

Customer Care Specialist

SAP Americas, Phoenix AZ


screenshot_Crystal.png

Crystal w Visaul Studio- blank page

$
0
0

We are experiencing a problem with crystal. We have a web application (Visual Studio 2013, OS is Windows Server 2012 R2).

We use SAP Crystal Reports runtime engine for .Net Framework (64-bit), version 13.0.10.1385 and

and SAP Crystal Reports, version for Microsoft Visual Studio, version 13.0.10.1385

 

When the aspx page is launched where the Crystal report would be seen, it only displays a blank page (not a blank report). i.e. the report is not displayed.

I looked in the IIS logs and there is no error reported there, however I found something very interesting that I believe holds important information to resolve this issue.


Yesterday's logs, when everything was working I see IIS entries with this path:

.. GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js     304 0 0 0

 

in today's log, I see the entries for have a different path:

.. GET /aspnet_client/system_web/4_6_1055/crystalreportviewers13/js/crviewer/crv.js   404 0 2 0

 

for some reason the path of the /aspnet_client/system_web is now 4_6_1055 and not 4_0_30319, and furthermore, this is resulting in a 404, it is not finding it?

 

what does this mean and what do I need to do to fix this?

 

Thanks very much

Cecilia

Execute a SQL Command at connection.

$
0
0

Hello,

   Is there a way I could force Crystal  to execute a SQL command each time a report connect to the DB. Our goal is to be able to initialize some Oracle variable inside an Oracle package. We would llike to do that without modifying the reports if possible. I have see the UFL but I don't think it's the solution.

 

Thank you.

Charles

SAP Crystal Report 2011 running in VS2015, does not print if there is no breakpoint

$
0
0

 

Please help! does not throw error at all if I run it per statement it will print but if there is no break point it will not print

 

The report file does not contain saved data and cannot be viewed.

$
0
0

I open .rpt file in crystal report viewer,so he show me this message The report file does not contain saved data and cannot be viewed.

please give me solution..

"Suppress Printing If No Records" option is ignored by InProc RAS (POC)

$
0
0

Hi,

 

the "Suppress Printing If No Records" report option seems to be ignored, if the PrintOutputController.PrintReport() method is used. If the PrintToPrinter() method is used instead, the option works as expected. As I understand, the "PrintToPrinter()" did have the same issue in the past, but was fixed with SP7 (see https://apps.support.sap.com/sap/support/knowledge/public/en/0001486027). It seems, that the RAS (POC) was forgotten in this fix.

 

Environment:

  • C# application
  • CRVS SP16

Outgoing Payment

$
0
0

hi, I was create a CR layout as OP. As the AP Credit Memo show in total -888.00, how can get the negative sign in Crystal Report? there is no field I can get it.

 

Or can I know how to join on Outgoing Payment and A/P Credit Memo?

 

Thank for reply.

 

hooi

ReportDocument.Export() for reports without parameters

$
0
0

I currently run a Windows service that exports Crystal Reports to PDF on schedule. Out of the 66 reports that run, 5 or so have never had parameters defined. They are currently run by the Task Scheduler, after taking them off the Christian Steven Crystal scheduling software suite.

Using the Crystal Reports DLL, I understand that the ReportDocument.Export() method requires parameters, as I have been experiencing the "missing parameter values" exception when it hits the ReportDocument.Export() method.

I'm currently doing my set parameters in this method:

private void SetParameters(string rawParameters = null)

        {

            var crystalParameters = new Dictionary<string, object>();

            var parameters = String.IsNullOrEmpty(rawParameters) ? null : HttpUtility.ParseQueryString(rawParameters);

 

 

            if(parameters == null)

            {

                ParameterFieldDefinition parameterFieldDefinition = this.reportDocument.DataDefinition.ParameterFields[0];

                ParameterValues defaultParameters = parameterFieldDefinition.DefaultValues;

                this.reportDocument.SetParameterValue(0, defaultParameters);

            }

            else

            {

                foreach (string rawKey in parameters.AllKeys)

                {

                    var value = parameters[rawKey];

                    // Check for array value (e.g. key[0]=value)

                    var arrayCheck = Regex.Match(rawKey, @"^(.+)\[[0-9]?\]$");

                    if (arrayCheck.Success)

                    {

                        var key = arrayCheck.Groups[1].Value;

                        // Existing entry for this key, reconstruct object array with this added

                        if (crystalParameters.ContainsKey(key))

                        {

                            var newParameterArray = new object[((object[])crystalParameters[key]).Count() + 1];

                            int i = 0;

                            foreach (object item in (object[])crystalParameters[key])

                            {

                                newParameterArray[i++] = item;

                            }

                            newParameterArray[i++] = (object)value;

                            crystalParameters[key] = (object)newParameterArray;

                        }

                        // New array value

                        else

                            crystalParameters[key] = (object)new object[] { value };

                    }

                    // Discrete value

                    else

                        crystalParameters[rawKey] = (object)parameters[rawKey];

                }

 

 

 

 

                foreach (string parameter in crystalParameters.Keys)

                {

                    try

                    {

                        this.reportDocument.SetParameterValue(parameter, crystalParameters[parameter]);

                    }

                    catch (Exception ex)

                    {

                        // Ignore invalid parameter exceptions, otherwise throw again

                        if (ex.HResult != -2147352565)

                        {

                            throw ex;

                        }

                    }

                }

            }

        }

 

My IDE is Visual Studio 2015 (initially developed on VS2013) and cuirrently uses SP 15 of the Crystal Reports runtime for .NET.

 

My question is - Is there are particular way for the .NET runtime to export reports without parameters? If so, what is the best way to approach this? Thank you.

attempted to read or write protected memory. This is often an indication that other memory is corrupt.

$
0
0

I'm using  Crystal reports for vs version  13_0_16
and visual studio 2012
windows 10 OS

 

 

when I click export or print an error
"attempted to read or write protected memory. This is often an indication that other memory is corrupt"
or the MYAPPNAME has stopped working , windows can check online for a solution to the problem

 

and on my client machine the report cannot even viewed and gives an error
MYAPPNAME has stopped working , windows can check online for a solution to the problem

 

I've tried installing another version for Crystal reports
turning off dep

using another version of vs ( vs2010 )
nothing works

 

I didn't know what to do with this error , please help !

 

Thanks

Installation of CR for VS2013

$
0
0

Hi,

 

I installed the CRforVS_13_0_16.exe on my pc but got an error failed to register. Below are the dll's that got an error installing. I also attached the print screen of the error. Is there a prerequisite applicatiob besides Visual Studio 2013.

 

  1. ReportPromptEMF.dll
  2. ReportSourceBridge.dll
  3. commonobjmodel.dll
  • objectfactory.dll
  1. saxserialize.dll
  2. datadefmodel.dll
  3. cubedefmodel.dll
  4. rptdefmodel.dll
  5. rptcontrollers.dll
  6. requestmodel.dll
  7. clientdoc.dll
  8. prompt.dll
  9. dtsagent.dll
  10. localcon.dll
  11. crlov.dll
  12. crqe.dll

WebResource.axd and ReferenceError: WebForm_InitCallback is not defined

$
0
0

I am trying to run Crystal Reports on my server but somehow it always comes out blank but in my local machine it works.

error.png

 

 

I have installed Crystal Reports 2013 and CR Runtime SP 16 64bits on my server.

 

This is my servers' information

server information.png

 

 

 

 

and this is my code to call my reports

 

namespace SmartCap_2._0.Forms.Checks.Report

{

    public partial class CrystalReportToView : System.Web.UI.Page

    {

        public string check_IDs = "";

        public string paymentDesc = "";

        protected void Page_Load(object sender, EventArgs e)

        {

            string connStr = ConfigurationManager.ConnectionStrings["SmartCap"].ToString();

            UserInfo user = (UserInfo)Session["UserInfo"];

            //string name = user.ToString();

            string parameters = HttpContext.Current.Request.Params["params"];

            if (!string.IsNullOrEmpty(parameters))

            {

                JavaScriptSerializer jss = new JavaScriptSerializer();

                ReloadRequest rr = jss.Deserialize<ReloadRequest>(Server.UrlDecode(parameters));

                check_IDs = rr.Params.Param;

                paymentDesc = rr.Params.Param2;

            }

            if (!IsPostBack)

            {

                ReportViewPCP();

                //LogActivity.Log_Action(connStr, user.UserName, "Checks Template", "Generate Report", Request.Browser.Browser, Request.UserHostAddress.ToString(), "RV", new FileInfo(this.Request.Url.LocalPath).Name);

            }

        }

 

        private void ReportViewPCP()

        {

            DB db = new DB();

            string connStr = ConfigurationManager.ConnectionStrings["SmartCap"].ToString();

            try

            {

 

                string[] array = check_IDs.Split(',');

                string comp = "";

                for (int i = 0; i < array.Length; i++)

                {

                    array[i] = "'" + array[i] + "'";

                    comp += array[i] + ",";

                }

                comp = comp.Remove(comp.Length - 1);

                if (paymentDesc.ToLower() == "capitation")

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"capitationsReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"capitationsReport.rpt"));

                }

                else if (paymentDesc.ToLower() == "incentive")

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"msoIncentivesReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"msoIncentivesReport.rpt"));

                }

                else

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"incentivesReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"incentivesReport.rpt"));

                }

                CrystalReportSource1.ReportDocument.SetDatabaseLogon("empty", "empty");

                CrystalReportSource1.ReportDocument.SetParameterValue("ID", comp);

                CrystalReportViewer1.ReportSource = CrystalReportSource1;

                CrystalReportViewer1.DisplayGroupTree = false;

 

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.ServerName = @"empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.UserID = "empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.Password = "empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.DatabaseName = "empty";

                CrystalReportViewer1.Zoom(125);

            }

            catch (Exception ex)

            {

                throw new Exception(ex.Message);

            }

        }

    }

}

Viewing all 2556 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>