I am writing a simple Winforms app to generate 44 separate letters from a MS Word template. I get data to each letter from a local SQL Server database. While running the generate letters method I get the error shown here randomly. I am using Microsoft.Office.Interop.Word to do this:
The last time you opened x.docx, it caused a serious error. Do you still want to open it?
When I click No the program exits and when clicked Yes it continues. I manually re-enabled the file in Word options - Add-ins, and I have read solutions about registry editing and questions like this.
Why does this happen, and how can I fix this issue?
I am trying to integrate Jasper reporting in my application which currently uses Crystal Report. As of now I am able to connect to the Progress DB and able to publish report to the jasper server from the studio.
The next step is to view these report from my application in pdf format.
Any help on how to do this or best suggestion would be highly appreciable. Is there any JasperConverter in Progress to convert the JRXML files to pdf directly from application?
Thanks Ahead.
I think you are looking in the wrong place. Shouldn't you be running the Jasper Report Viewer to view the report?
To invoke that from a Progress 4GL session you would either shell out and run an OS command or invoke a DLL. The details depend on the version of Progress and the platform that your client session is running on.
We are using SAP Crystal Reports with Visual Studio 2010.
To enhance our program with a new report, we have created a new data table and added it to our results data set. The problem however is that it is not possible to refresh the results data set in the Crystal Reports editor. As the screenshot shows, a window appears where we are supposed to enter connection credentials, and then we get an error message.
We have already had this problem several times before. Once, when we did essentially the same thing (add a new data table), it worked. So it seems to work sometimes, and sometimes it does not. But: How can we avoid this problem? It is really annoying and so far, I have been unable to add the data table which I have created today. This is a big problem.
As part of my web application, i am using iReport tool to generate reports and its working fine but my doubt is, is it possible to generate xls type report in browser like pdf (we can show the pdf file in the browser)? Means I need to show reports in xls file or word document in the client machine, is it possible? Can anybody clear my doubt?
Although it is a bit late, I'll try to give a generic answer
you can fetch your data to your local Jasper Reports server via JSON.
There is a sample of JsonDataSource in the 4.5.0 version of jasperreports at *\demo\samples\jsondatasource
to run report and receive output pdf, etc. you can use REST API for Jasper Server
then you send output to end user
We have a purchased application (I'm told it's .NET, it's client server, running on Windows XP, connecting to SQL Server 2005) that uses a Crystal Reports runtime and separate report files (.rpt) to do it's reporting function. I have a copy of the CR Designer program but we don't have the CR Enterprise software. I can open the reports in the designer, get to the SQL Server data source (and any others, I guess), add them to the report, run it, print it -- but I can't figure out how to use the same Datasource, which is a subset of the tables in the database that it's connecting to, to do it, and I can't figure out how to save the report files so they'll work with the application. Real gravy would be coming up with new reports.
Is this even possible?
If you open up the report and then go to Database, Set Datasource Location, under the Properties section you will find a lot of info about the datasource and where it is getting it's info from. If the purchased application is creating its own datasource internally though and supplying it to the report at runtime, the best option that I can think of is to start a trace on the SQL Server and then run a report. You should be able to see the SQL that is issued by the Datasource and replicate it in your own version.
You have the possibility to manage your connection's properties at runtime (ie while launching CR from your app). Here is a proposal: Crystal Reports Datasource remap
If you cannot access your app code, you should then do as proposed by #Anthony, by updating all your connection strings in your rpt files, save the rpt files, and copy then on the corresponding report folder of your app: you might have to find where it's located in your system.
First of all, you'd better make sure you're not violating the application's license agreement by attempting to add to it in this way.
It may simply not be possible to add reports to the app in any case - it depends how it loads them and what it does with them.
To use the same datasource, you should just be able to open one of the .rpt files, then go to File > Save As, and give it a new name. Then modify it to what you want. Of course, if you don't know the authentication credentials the app passes to the report to connect, it would be tricky to test it.
It would help greatly if you gave us the name of the purchased application, as we don't really know what you're up against.
It could be that the application is passing through a filter of the data. So when you run the report from Crystal Reports Designer you get the whole data base, however when run through the program the parameters being passed to the report restrict the data back down.
Create a backup of the report. Then edit the existing report, make the changes you require, preview the report to get an idea it looks right, save the report and run the report via the application.
Warning:
As it has already been stated some vendors may not allow you to edit existing reports, your warranty/sport may be voided by editing existing reports, or reports could even be overwritten on the next update.