Quantcast
Channel: SCN: Message List - SAP Crystal Reports, version for Visual Studio
Viewing all 6879 articles
Browse latest View live

Re: Invalid Section Height when I load the nth subreport

$
0
0

Hi Don, Ludek,

 

The link you supplied is inaccessible to me. The page cannot be displayed. Perhaps it is not a public link? I would be interested in reading the details. It'll be important for me to succinctly explain the issue to my team so we can decide what our best approach is. We may ultimately decide to limit the application to only display 40 charts; however, I'll take a look at the code you provide to see if we can work around it.

 

Thanks,

Ryan


Re: How to develop a report in Crystal with flexible database name?

$
0
0

Thanks. You give me information about the .NET integration, which will be indeed very valuable at the next stage, when .NET developers will be engaged.

 

I am stuck with Crystal development tool yet.

 

Let's forget about the version differences between me and the contractor, for a moment.

 

I am getting an RPT working with ODBC connection, pointing to a MS SQL database named "DB1".

 

When I change the DB conneciton in my Crystal, to one pointing to "DB2" on the same server - the report isn't working.

 

When I look into the "SQL Query" - I see "DB1" name "hardcoded" into the query.

 

Our contractor claims that it's the way Crystal is designed.

 

Any way to overcome this issue in Crystal?

 

Or you rather hint that this issue will not be relevant in production, since using .NET SDKs we can override any connection set by the developer, to point to any DB name?

 

Thanks again.

Re: Invalid Section Height when I load the nth subreport

$
0
0

Hi Ryan,

 

KBA was under a product that required a Support Contract, Ludek changed it so it will eventually show up in SCN.

Nothing much in the KBA other than saying it's a limit and we've asked R&D multiple times to change it and it's been rejected each time because it would cause all sorts of Design/Designer problems.

 

I had a re-look at the header file for crpe32 and there is no way we can change this. It's a Macro we use in all of the Section and area functions and to change it would require a full regression test on all products so it's not going to happen.

 

I do know though that code I pasted above will allow you to modify and existing subreport. .Modify doesn't not have the limit as the .Add does. So if your team decides to allow more than 40 charts then this would be the way to work around it.

 

Also, I was talking to the Report Design Resource and a few question and point:

Is the data source the same for all or most and if not can it all be combined into one data source?

If it is then we can possibly use Conditional Suppression to "hide" the ones not required.

 

Let me know what you decide and I'll do more testing also.

 

Thanks again

Don

Re: How to develop a report in Crystal with flexible database name?

$
0
0

How are you changing the location? Using the Database Expert? Can you detail the exact steps?

 

Check the "Saved data" option under the File menu. If it is enabled, remove the check mark.

 

If there are subreports, you may have to change the the datasource there too.

 

Can you try to create a simple new report connecting to DB2? One table one field will do.

 

Define: "the report isn't working.". Does that mean errors? Symptom? Behavior? What actually happens?

 

BTW.; the advice you are getting is not correct or we all are misinterpreting what the developer is trying to say... Only saying that because changing datasources in the CR designer is pretty trivial.

 

And if you can not change the datasource in the designer, you sure will not be able to change it at runtime. So we need to figure that part out.

 

 

 

- Ludek

Re: Red X instead of images when running a CR for VS report in my ASP.NET app

$
0
0

FYI, I looked at thread #3538009 and SAP Note #2007224 - looks like these might apply to my situation.  So far nothing has worked (though I tried the things mentioned in these).  Wondering if this problem is a bug with VS2013 and .NET 4.5.1 (I'm using both)?

Re: Red X instead of images when running a CR for VS report in my ASP.NET app

$
0
0

Create a new Web Crystal app and see if that works because we know this works. Just add the CR rot reference and then open and preview a report with saved data.

 

Then we can look at why your main app won't update.

 

Don

Re: Need to uninstall CR 64 and install CR 32 for vs2010 on a development PC

$
0
0

thank you very much.  Quick follow up. Given the fact that this was not done,  I would think that not only the cr 64 installation (whatever that was) should be uninstalled but also the visual studio 2010 should be uninstalled on the new machine  with both reinstalled in the proper order.  

 

Yes or No

 

if no, what would I do to rectify the problem other than installing the install exe on the link which is what use now for updates.

Issue with export to pdf in CR 2013 (after upgrade)

$
0
0

Hello All,

 

 

We have a crystal report 2011 (BO 4.0 SP5) that was working just fine. After upgrading to BO 4.1 SP3 Patch 1, the export of the CR report from BI Launchpad was different from the output of BO 4.0 SP5 BI launchpad, but the pdf output of CR 2013 designer and CR 2011 are same. I have added the 3 registries that were there in the DEV server also exist on 4.0 SP5 server as well.

HKEY_CURRENT_USER\Software\Wow6432Node\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\Export\PDF

"ForceLargerFonts"=dword:00000001

"UsePrecisePositioningForText"=dword:00000001

"TruncationAdjustment"=dword:00000002

 

 

The differences as below:

1) Some of the text (hardcode not from any universe object) is showing out of the text box

2) Left and right margins are slightly bigger in CR 2013 pdf output

3) At some places word to word spacing also increased

 

Also weird thing is we tried reducing the font size to fit the text inside the box, but that is reducing the font size at some other place in the report or changing the word to word spacing.

 

Has anybody seen such issues in CR 2013 SP3 Patch 1 so far?

 

Let me know if you have any suggestions.


Re: Any known issues with CR (v. 13.0.9.1312) and MS APP-V?

$
0
0

Traced some more, using ApiMonitor:

 

#Time of DayThreadModuleAPIReturn ValueErrorDuration
7526:48:46.281 AM1clr.dllCoGetClassObject ( {f734a321-8381-4ffd-a614-139e8906dc83}, CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER, NULL, IClassFactory, 0x002eaf30 )-2147024774

0x8007007a = The data area passed to a system call is too small.

0.0166885

 

 

GUID f734a321-8381-4ffd-a614-139e8906dc83 = ReportClientDocument, clientdoc.dll

 

Api

 

 

HRESULT CoGetClassObject(

  _In_      REFCLSID rclsid,

  _In_      DWORD dwClsContext,

  _In_opt_  COSERVERINFO *pServerInfo,

  _In_      REFIID riid,

  _Out_     LPVOID *ppv

);

 

 

In this case *ppv is NULL which is pretty much an invalid pointer. Question is: Where does it get it from? Apparently a previous operation, most likely the libWhatever helper crystal DLL.

 

Digged some more. There is an underlying system call:

#Time of DayThreadModuleAPIReturn ValueErrorDuration
10127:31:09.897 AM1KERNELBASE.dllLdrLoadDll ( "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86;;C:\Windows\system32;C:\Windows\system;C:\Windows;C:\Users\Administrator\WINDOWS;.;C:\ProgramData\Microsoft\AppV\Client\I, 0x002e9db0, 0x002e9d98, 0x002e9da4 )STATUS_BUFFER_TOO_SMALL0xc0000023 = {Buffer Too Small} The buffer is too small to contain the entry. No information has been written to the buffer.0.0048485

 

 

LdrLoadDll is undocumented, but presumably called by LoadLibrary. It appears to be a call to load:

"C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\clientdoc.dll"

 

 

From a search path of:

"C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86;;C:\Windows\system32;C:\Windows\system;C:\Windows;C:\Users\Administrator\WINDOWS;.;C:\ProgramData\Microsoft\AppV\Client\I

 

 

The entire path is 932 bytes (unicode) ie 466 chars.

Re: Missing References

$
0
0

Hi BL,

 

You need to get Visual Studio 2010, 2012 or 2013 and then open your project up in it and then it should work.

 

You can't use CR for VS in VS 2008.

 

Don

Re: CrystalReportViewer.SearchAndHighlightText How it works?

$
0
0

Hi Ashraf,

 

Works for me. You never said what Version of the SDK you are using? I'm using CR for VS SP 10.

 

Don

 

PS - moved your post to the CR for VS forums.

Re: CrystalReportViewer.SearchAndHighlightText How it works?

$
0
0

Create your own button for searching when the viewer is active and the report is displayed. Then from your Text prompt UI pass the text into the YourTextString variable:

 

protected void Button1_Click(object sender, EventArgs e)

{

    CrystalReportViewer1.SearchAndHighlightText(YourTextString, CrystalDecisions.Shared.SearchDirection.Forward);

}

 

Then create the same for the Backward direction button:

 

protected void Button2_Click(object sender, EventArgs e)

{

    CrystalReportViewer1.SearchAndHighlightText(YourTextString, CrystalDecisions.Shared.SearchDirection.Backward);

}

 

You do need to use the PostBack instructions so you keep the report in session. Search and you'll find sample on how to use the Postback method.

 

Don

Re: Invalid Section Height when I load the nth subreport

$
0
0

Hi Don,

 

The data source is not the same for each chart. While it's all in the same database we reference different tables and fields for each chart in the subreports. The data is sufficiently different that we cannot combine it into a single table.

 

 

 

We've decided to apply the workaround you proposed with the dummy subreports. However, given the changes we'll need to make to our existing processes (from configuration, reports, code, etc.) it may be a few weeks until we have a final resolution. Thanks for you help in confirming that this was not an issue with our code and is a Crystal Reports limitation. I'll update this post with more info as soon as we have it.

 

Thanks,

Ryan

Re: Report designer in c# application

$
0
0

Hello, thank you very much for your reply.

I wonder if the recommended product is free or paid.

Report Application Server if it is paid, then how I can do to buy the exact version that I need to meet my requirements?

 

 

 

You tell me that you can not add the report designer for a project .net framework.

In which language could add crystal report designer, taking into account that I use crystal report 11?

Re: Visual Studio 2013 Crystal Installation?

$
0
0

Hi Julian

 

 

The solution you found is the one and only. There is no other way I know of that would tell the report engine where to go looking for the viewer folder.

 

 

- Ludek


Re: CR for VS2005 upgrade to VS2010 to VS2013

$
0
0

The second error, is either an incorrect translation(?), or an error that the app is trapping and re-displaying. E.g.; this is not a CR error.

 

Can you paste in here the code used?

What database are you using?

What database connection method (OLE DB, ODBC, etc.)

Does the report work anywhere?

Can you attach the report - with saved data preferably.

Do a very simple test:

 

New app

One line of code:

 

CrystalRepoprtViewer1.ReportSource = <path to the report>

 

The report should prompt for db logon and any other parameters.

What happens in this app? (Make sure it is a win app and you use the full 4.x frm).

 

 

 

- Ludek

Re: Report designer in c# application

$
0
0

SAP Crystal Reports, Developer Version for Visual Studio .NET is free. Details of licensing:

 

SAP Crystal Reports, version for Visual Studio - Technical & License Resources  

 

SAP Crystal Solutions Licensing

 

In the above you get the InProc Report Application Server SDK. Not the Crystal Reports Application Server - two different things...

 

 

Re:

In which language could add crystal report designer, taking into account that I use crystal report 11?

 

 

You would be using VB 6 and the Report Designer Component. Now, "crystal report 11" is not enough information as that does not tell me if this is CR v. 11.0.x or 11.5.x. You want to get to 11.5, see this blog on how to. Please do realize that CR 11.5 has been out of support for over 2 years now. As for coding details, etc., there is lots of info - use the search box in the top right corner. Simple search strings like 'crystal rdc' are best. You may also want to try 'crystal embeddable designer', etc., etc.

 

 

RDC Help file:

Developer Library XI Release 2 Productivity Pack

 

Sample apps:

Report Designer Component SDK COM Samples - Business Intelligence (BusinessObjects) - SCN Wiki

 

 

 

- Ludek

Re: Report designer in c# application

$
0
0

You can send me an example of how to integrate the DRC in crystal report using VB6 11.0.0.1282?

Re: How to develop a report in Crystal with flexible database name?

$
0
0

Ludek Hi

 

Will try to explain better.

 

In Crystal 2011, I have an open RPT, working fine with ODBC connection "bi1" pointing to DB named "db1" as the default DB on the sever.

 

I also have the same database under name "db2", and ODBC connection "bi2" pointing to "db2" as the default DB on the server.

 

Now I go to Data -> Set Datasource Location menu, and replace "bi1" by "bi2" for the report and all the sub-reports.crystal_datasource.jpg

 

Unfortunately, the report is still working with "db1" and not "db2":

1. When I change something in db1 - I see the change, but not in db2

2. I see "db1" name when looking into the Database -> "Show SQL query" menu.

 

Hope this explains what I meant by a vague statement "not working".

 

Maybe I do things wrong way. Be happy to hear thow to achieve the goal.

 

Thanks again

Max

Re: Has anyone actually fixed the "bobj is undefined" problem?

$
0
0

Typically, the bobj error is a configuration issue, so nothing to "fix" as such. If you enter the search term 'crystal net bobj' you get well over 20 KBAs on possible solutions. See if any of those help you out. If not, do come back, but let us know what you tried.

 

re:

 

Only thing is that I have not copied any files to the wwwroot directory. I want to make a reference through the config file.

 

See KBA 1691356 - Error Message: "Bobj is undefined" during deployment of ASP.NET application

KBA 2007190 - Error: JavaScript runtime error: 'bobj' is undefined


And see the SAP Crystal Reports .NET SDK Developer Guide  (search for 'web.config viewer')

 

BTW, the solution mentioned here: Error: 'bobj' is undefined - crystal report for VS2013 - please help ASAP,

is documented in 1691356 - I believe

 

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Viewing all 6879 articles
Browse latest View live


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