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

Switching schema name for a report at runtime

$
0
0

This questions may have been asked before, but in so far I couldnt get the solution going. We have a requirement to display adhoc reports where the user chooses the Oracle SID (with host/port) and the schema name of data and the report would pull the data from that schema. It is assumed that the Oracle user/password that is supplied will have access to that Oracle instance and read the objects from the specified schema. The schema itself would have same time of objects across all instances, just the name will different. And it is also possibel that the user may request two reports simultaneously each fetching data from different connections.

 

 

I suppose we have two options:

 

1. Create a viewer web package & access the reports, update its login credentials etc before passing it to the viewer classes. This work if I access the report as a file (*.rpt). However, if my report is deployed in the enterprise there isnt a way to access it & create ReportClientDocument. For example, the following call is stated as deprecated

 

 

IReportAppFactory reportAppFactory = (IReportAppFactory) es.getService("","RASReportFactory");

boReportClientDocument = reportAppFactory.openDocument(Integer.parseInt(reportID), 0, java.util.Locale.US);

 

2. On the other hand, to simplify the deployment (we didnt want to write or deploy our own viewer package necessarily), I suppose one can modify the web.xml of the deployment, write some sort of filter or handlers to update the report or report source on the fly. From the literature it looks possible, but I again I couldnt find a solid example to demonstrate this or if this even a suggested solution.

 

 

Thanks for your help, appreciate your support.

 

 

Thanks

Alex


debuging a crystal report from VS2005

$
0
0

hi,

 

I am using VS2005I have created a formula field in Cystal Report. This formual field will set supress true or false for a lablel filed in the Report. some how this lable is dislaying always beacuse of the error in the formula field. i have put break point in the report formula filed but this break point is not hit while executing the report.

 

can some one help me how i can debug this formula field.

 

Thanks in advance,

 

Sathish

Proposed SAP on StackExchange

$
0
0

There is a proposed SAP Q&A site on the stack exchange, it could use some more followers in order to get it turned into a real stack exchange site. For those of you who don't know the stack exchange is a series of community based Q&A sites where users ask and answers question on a particular area(Stack). The most popular of these site is stackoverflow.com and superuser.com but there are many other sites as well. If you would like to help the SAP community grow then please participate in the pre-beta creation of the SAP Stackexhange Site. Right now it is in the committment phase which means more users need to "follow" the site and they can also post sample questions can be voted on to help determine the type on content that the site will focus on. See the link below.

 

http://area51.stackexchange.com/proposals/41621/sap-systems-applications-and-products

Crystal report for VS2012

$
0
0

Where i can download the new api for VS 2012?

 

Best regards

OLE Object insertion at runtime

$
0
0

Is this possible?  Or can we edit the link of an existing object at runtime?

Viewer VS2010 Padding Spaces

$
0
0

The Viewer in VS2010 is padding a line's worth of space to the top and bottom of reports.  As a result our clients are not able to print W2's and 1099's as the text at the very top and very bottom is being pushed toward the center by about a quarter of an inch.  I tried updating the runtime to the 13.0.4 from 13.0.2 that we currently use and it still has the issue.  If you run the report directly out of CR X, CRXI, and CR2011 it works fine and the text lines up in the positions correctly.  Its almost as though a line worth of space from the page header, and page footer is always being displayed even though the report says to suppress those sections.  I did find another posting on the SAP community that its a known issue for web apps, and that runtime 13.0.5 is supposed to address the issue but hasn't been released as of yet, but has anyone been experiencing the same issue with a win app?  We've got several hunderd customers going to need to print their W2's and 1099's, so we're trying to find a solution for this. 

 

*Update*  Broke out the ruler to measure to see what's going on.  The report was designed in CR 2011.  The report header/footer and page header/footer are all supressed.  The data is pulled in from tables and layed in the appropriate position to fill in the correct positions on the form when printed.  The margins on the page setup are set to 0 all around, top,bottom,left,and right.  The top of the first field being the social security number should appear at just a tad over 1/2 inch from the very top of the page.  Which it does in the designer, left/right position is no concern as no hroizontal shifts appear to be occurring only vertical.  When you send to to viewer and select the print button, default one built onto viewer control toolstrip, and take measurements, the top of the social security number field is starting a just a tad over 1 inch.  The same thing is happening from the bottom.  It looks like a 1/2 inch margin or pad of space is being added to the report on the top and bottom.  We're able to duplicate here on our local develpment environment and being reported now by many of our customers as many of them are beginning to prep their W2's. 

 

As a temporary solution we have customers using the old Crystal XI viewer we have in VB6 as when you run the report through it, it works fine.  So, we've now confirmed if you run the report directly out of Crystal X, Crystal XI, Crystal 2011, and the old XI viewer it works correctly and all the text is fine. 

 

I would assume that the VS2010 VB.Net viewer would use whatever margin settings that are defined within the report unless otherwise overwritten.  I just want to confirm there's noting programmatically we are supposed to do to make it honor margins of the report when we load them? 

Missing text when printing on a printer

$
0
0

One of our customer is experiencing an issue with the "Impact" font when printing to a HP Color Laserjet 5550 printer. The report is designed with Helvetica and Impact fonts. Helvetica text is printing fine, but all Impact text is missing.

The latest PCL driver (61.082.61.41) is installed, and the Impact font is installed on the printer and everywhere it is needed.

The Crystal Reports version is 2008 SP3.

 

We have a workaround but we would like a permanent solution. Any idea ?

Crystal Report for Visual Studio 2012

$
0
0

I just wanted to know how long will SAP take to launch Crystal Report package for Visual Studio 2012, as VS2012 has launched 3 months ago and still SAP did not update the Crystal Report for the same. Please someone let me know till what time i can expect Crystal Report to be available for VS2012.?????


Upgrade from Crystal Reports XI R2 on Win XP to Crystall Report 2011 Win7

$
0
0

Hello,

We have a old VB application developed with VB6 and Crystal Reports XI.
Data from csv-files are imported into a VB recordset, modified, exported to Crystal Reports (Template), saved a rpt-file und exported to pdf.
Now we have to upgrade the application under Windows 7 and Crystal Reports 2011 Environment (Visual Studio .NET)

For Crystal Reports integration into our program we used a "Crystal Reports ActiveX Designer Run Time Library 11.0 (Craxdrt.dll).

craxdrt.dll is retired technology. What technology can we use instead of Craxdrt under Crystal Reports 2011?

We habe "Crystal Reports 2011 CR Developer"-licence. Do we have to buy in addition "Crystal Reports for Visual Studio 2010"?

ReportDocument.Load slow due to saved server/database connection

$
0
0

I have found multiple posts where people have experienced the following but yet to find a practical solution.

 

You develop a report using oledb connection and specify a server/database to connect to and develop your report using a couple tables, just a typical report. Now I wish to deploy this report in a .Net application and utilize ReportDcoument.Load to load the report, change the connection information to the specific server/database I wish to connect to (at runtime, which is a completely different server/database than what was used at design time), and then view the report in the report viewer...and it all works!....unfortunately the user has to wait for upwards of 2-4 minutes just for ReportDocument.Load to actually finish as it appears to try and connect the server/database specified at design time, and of course it cannot find it since it was a development server/database that does not exist anywhere on my users network. So what to do?

 

If we change the server/database in the report through the designer first (where you also have to wait for it to attempt to find the server/database as well) to match one that actually exists, and then try it, then ReportDocument.Load runs in a second or two. But this is not a practical solution as it turns out my application is deployed to many clients and changing every report for every client, even through some sort of utility sounds like insanity to me (we have 200 or so clients and around 400 crystal reports!). There must be a more elegant solution where we can some how prevent the Load method from attempting to find the server/database stored in the report, or at least adjust the time out before it decides it cannot find it, so that we can then set the appropriate server/database before any attempt is made to connect to it. The only solution I have found thus far is to manually modify your report to have it reference a server/database that actually exists, and that is not acceptable for any application that is deployed to many clients. Maybe there is a way to change the server/database at runtime without doing a ReportDocument.Load first but I have not found anything. Has anyone run into this and found a decent solution/workaround?

Purpose built version of Crystal Reports that is included in the box with VS 2008

$
0
0

Does the purpose built version of Crystal Reports that is included in the box with VS 2008 use the COM objects or Crystal.NET?

Crystal Reports Viewer Version

$
0
0

I have written an WinForms app in Visual Studio 2010 and embedded the Crystal Reports 2008 viewer.  Everything works fine, but the viewer requires .Net Framework 4+.  My target deployment group is on .Net Framework 3.5sp1, and are unable to upgrade to 4.  When I change the .Net Framework in Visual Studio, I get multiple errors stating that the "CrystalDecisions.CrystalReports.Engine, version=12.0.2000.0 could not be resolved" because "The version found in the current target framework is 10.5.3700.0."

 

I have the full Crystal Reports 2008 package installed on my development computer.  Is there a version of the 2008 engine for .Net Framework 3.5, or is there a way I can install version 10.5.3700.0 of the engine (maybe just copy the file to my computer and reference it in my project)?

 

 

Thanks,

Jack

Why are the CR Runtime msi's for version 13 missing the CrystalDecision dll's?

$
0
0

We are deploying a windows application written in VS2010 framework v4.0 that includes a feature that allows user to view Crystal Reports.  In our installshield package, we originally included the SAP for framework 4.0 merge modules but found that the folder depth and long named dll's were easily causing the max_path variable to be exceeded on windows workstations.  So, I tested using the CR Runtime redistributables for version 13.  However, I found that these did not included the CrystalDecision dll's which is what we needed.  It seems that these dll's our vital and should be included.  I did not see any other redistributables on the SAP website for deploying to client workstations.

End Result of "@Filename" appears to have changed from VS2008 to VS2012

$
0
0

As I've reported previously in this forum, I was able to successfully utilize my Visual Studio 2008 Crystal Reports templates in Visual Studio 2012, when I upgraded my project recently.  Or so I thought.  In point of fact, most everything works well but there is one significant difference which I only noticed today.  It is illustrated in the attachment.

 

Simply put, in VS2008 the @Filename field used to represent just the name of the report template before the ".rpt" extension.  Now it appears to represent the entire path instead. :-(

 

I'm in a bit of a Catch-22 because I've uninstalled the VS2008 Merge Modules from your company and installed the ones for VS2010.  So even though Visual Studio 2008 is still installed on my machine (concurrently with VS2012) the newer merge modules do not work with it.  If necessary, I could uninstall the newer one and temporarily reinstall the older one but I would need some guidance as to what "@Filename" is supposed to be replaced with to work properly within my VS2012 project.

 

I hope that all makes sense!  To put it another way, if one were creating a report template anew, what field or calculated field should one use to display just the Filename and not the path preceding it?

 

Sincerely,

 

Robert Werner

Vancouver, BC

Crystal Reports Windows Server 2008 ORA-12154: TNS:could not resolve the connect identifier specified

$
0
0

Hi,

 

I can't connect my report and the error showed is:

 

ORA-12154: TNS:could not resolve the connect identifier specified

 

But, other App in the same environment could connect withou problems. So, the Oracle Client is working fine and TNSNAMES are well configured.

 

In my dev machine I can connect the same database without errors. I don't know what could be different about the environment.

 

#######################

Dev pc

- Windows Enterprise 7 32 bits;

- SAP Crystal reports version for Visual Studio 2010 ( CRforVS_13_0_4 );

- Oracle client 11;

 

Server configuration is:

- Windows Server 2008 Standard SP2 64 bits;

- SAP Crystal reports runtime engine for .Net Framework 4 (64-bit) ( CRforVS_redist_install_64bit_13_0_1 );

- IIS 7.0;

- .Net Framewor 4.0 Integrated;

- Oracle Client 11;

 

#######################

 

Am I missing some driver?

 

Thanks,

Andrew Paes


CRVS 2010 - blank lines in report with paging disabled

$
0
0

Hello,

 

I am working on a .Net 4.0 web application which uses Crystal Reports 13 (CRVS 2010). Actually this has been migrated from .Net 1.1 which was using Crystal Reports 11. Now one of my requirement is to generate few reports in which paging is disabled (of course when exported to PDF it does come out in multiple pages) such that the entire report content is shown in a single view on the web page (with a vertical scroll bar). Now to achieve this I set a few properties as shown below -

  • Set DisplayToolbar to false on the crystal report viewer control
  • Set the SeparatePages property to false on crystal report viewer control
  • In the report (rpt file) I enabled/set Keep Together on all sections and also set Suppress Blank Section property
  • As I did not have much in page footer I set the Reserve Minimum Page footer property. I also set Clamp Page footer property

However when my report is displayed in the page, I observe blank lines in between the content (shown in the attached jpeg). A deeper look suggests that these blanks appear right at the point where I would have had the page break if I had enabled paging. This makes my report look odd on the web page. With the old application which used previous version of CR this was not the case. Is there a way wherein I can ensure that the report when displayed on the web page concatenates the content properly without any gaps considering that I disabled paging?

 

Any help would be highly appreciated.

 

Thanks,

GowriShanker.

 

P. S: Also attached is the report file with extension changed to txt.

Crystal Reports for VS2010 using a custom SAP ABAP function module data source

$
0
0

I recently worked with Crystal Reports 2011 and was able to connect and retrieve data from our R/3 system via an ABAP function module. While researching other features, I found this version that can be installed into Visual Studio 2010. The parameters are not very user friendly in Crystal Reports so I was hoping to create a custom dialog to collect my report parameters.

 

Does anyone know if I were to install Crystal Reports for Visual Studio 2010, would I be able to design a front-end selection screen in a Visual Basic form and then pass the input to through the Crystal Reports connection to my ABAP function module to retrieve the data filtered on the back-end by the selection screen parameters and return the results to be reported in the Crystal Reports output?

 

I am using Visual Studio 2010 Professional Visual Basic with the .NET Framework 4.0 on 32-bit Windows 7. I was able to connect to our R/3 system in Crystal Reports 2011, so if I were to install Crystal Reports for VS2010, would there be a similar way of connecting to SAP?

 

Any assistance or direction would be greatly appreciated.

 

Thanks,

 

Bryan

Crystal Reports 2008 Barcode fonts (code 128)

Trying to Upgrade from Visual Studio 2008 Professional to 2012 Professional

$
0
0

I've just posted my dilemma on Microsoft's ASP.Net forum but thought that I might be able to get some help here as well.  Here's what I wrote: http://forums.asp.net/p/1869063/5251925.aspx/1?p=True&t=634922320100838427

 

I'm thinking that the problem to removing all of the error messages is to simply alter the [identical] contents of each "########.Designer.cs" file.  But to what?

 

Hoping someone can help!

 

Robert Werner

Vancouver, BC

Crystal Reports for Visual Studio 2010 and DataDirect drivers

$
0
0

Does Crystal Reports for Visual Studio 2010 support fetching data from DataDirect drivers? All documentation I found on the net spoke of Crystal Reports 2008. Want to know: if there are DataDirect drivers installed on my PC, can I design a report in "Crystal Reports for Visual Studio 2010" to fetch data from these drivers? There is talk going on in my organization about using DataDirect drivers for DB2 and I am researching whether CR for VS 2010 will support as we have quite a few reports developed with it. Any information will be helpful.

Viewing all 3636 articles
Browse latest View live


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