I've got a C# application targeting .net 4. The application includes some Crystal Reports reports which can be printed or previewed. My code uses:
CrystalDecisions.CrystalReports.Engine.ReportClass
There is a report, created with Crystal 2008, which dynamically fetches one or more images from the file system. I'm running into problems when those images are large.
For example:
The report is trying to include 4 images (each on their own page)
The source images (.jpgs) are 3.5 megs each
When I print or preview that report, generally the first 2 images appear, but then no more. Then if I try again I generally will not see any of the images and often get this message box (when previewing):
Crystal Reports Windows Forms Viewer
Memory full.
Not enough memory for operation.
My application is using about 600 megs at that point.
If I swap out those large images for smaller ones (about half a meg each) I'm able to view the report without any problems.
If I preview the same report, with the big images, from within the Crystal Reports 2008 editor, it works perfectly well.
So is there a limit to how many megs of image data I can put into a report when using CrystalDecisions.CrystalReports.Engine.ReportClass? Or am I doing something wrong?
Had the same issue with reports containing more than 3 images. Solved by changing a setting in the RPT file.
Open your Crystal template, go into File -> Report Options, and unflag the "Retain Original Image Color Depth".
This will show pictures with a reduced quality, but will never make the report fail because of "Memory full". At least, that was my case.
Related
I'm creating an educational application for poor students who have android devices running on Android 4.1 and above.
I tried lots of packages but
most of them make the app crash and the rest take long to load the file and the application becomes heavy to use.
Is there a package or a way to improve the the performance?
I don't want to convert the pdf pages to images because this will make the size of the app very big to download.
These are the packages that I used:
flutter_full_pdf_viewer: ^1.0.6
pdf_image_renderer: ^0.5.0
advance_pdf_viewer: ^1.2.2
flutter_cached_pdfview: ^0.3.5 #min API Level 20
printing: ^5.2.1
pdf_flutter: ^1.1.4
flutter_pdf_viewer: ^0.6.1
native_pdf_view: ^4.0.1
flutter_pdfview: ^1.1.0
`
If you are facing issues with every pdf viewer then my suggestion would be to not use your app pdf viewer instead if possible you can use the default pdf viewer which generally comes preinstalled in devices. And you would need a way to know if a phone has an app that can open pdf files or not and in case it is not there then use your app pdf viewer.
The second option would be to split the pdf files into multiple pdf files like chapters, etc. I think this option is very much viable.
Also, you can try this package syncfusion_flutter_pdfviewer. I'm using it as of now and it is good.
I am creating a report meant to be read/edited by MS Word. To do that I have created it from scratch and saved as .docx.
In this report I am including some images together with captions. All of the captions were added manually. Everything went fine, I have saved the document and closed Writer.
Now I want to put my hands on it again and, upon opening the report, this is what I am seeing:. Previously the figure was showing fine inside the text box (that inserting a caption creates). The text box is in the same position and size, but there appears to be a boundary over which it just displays white. I can reduce the figure's size inside the boundary of visibility, and a glimpse of the captions appears too .
Note that the red arrow disappears too.
Needless to say, I can not work on a 100+ pages document and then check again each picture, delete it and re-create it, check again the cross references and so on. I would much rather work with LaTeX, but I am required to deliver a .docx file.
I am working on Ubuntu 20.04, Libreoffice is updated to version 6.4.6.2 and the only plugins I have equipped it are TexMath and Zotero.
Thank you for your time.
I noticed the same thing. It seems to be an issue already in Libreoffice Writer between Linux and Windows. If you create a document on Linux with a cropped image and then open the file in Libreoffice on Windows the cropping of that image is already messed up. Happens to me with Libreoffice Version 6.3.5.2.
We are using a combination of supermetrics, google sheets and datastudio for reporting social media content results. Supermetrics provide us with "Post image URL", for example this one: imageURL. The next step us using image+importrange function in different spreadsheet:
=IMAGE(IMPORTRANGE("XXXXXXXXXXXXXXXXXXXXXXXXXXXXX","'XXXXXXXXXXXXXXXX'!O2")).
This loads an image usually without any problem (apart from sometimes when the image simply doesn't load, god knows why):
Final step is using "Publish to the web" function in spreadsheets and then URL embed function in Datastudio - result is okay with pictures fully loading, however after exporting the data studio report into pdf (only way to download it), the images appear broken. All spreadsheets have sufficient rights and this is happening even if the base spreadsheet is set as public (+ results numbers are okay even in the pdf, so this should be the reason).
Okay so I have no idea why, when or how, but exporting to pdf works with images included today.
Pdf generates with css and images using #Server.MapPath("~/Content/... Loading the view (not as pdf takes secons) but generating pdf takes ages, about 5 minutes. Downloade latest wkhtmltopdf.exe but nothing solves my problem.
Please note, the pdf generates fine after intensive research about css and images and relevant files. The issue now is speed.
I am using crystal reports in VS 2010. I have a report with a watermark added. When I use 'main report preview' the watermark shows up just fine. When I use code to show the report it is gone.
InitializeComponent()
ReportViewer.Owner = Me
Dim durocReport As New Duroc
durocReport.SetParameterValue("registration", reg)
durocReport.SetDatabaseLogon("", "")
ReportViewer.ViewerCore.ReportSource = durocReport
The report shows perfectly except the watermark/background is missing, all of the data is correct.
I fixed this by cutting the resolution of the image from 300 to 85. It seems to be a file size issue. The image was also missing anytime I reloaded visual studio. It currently works, I will just have to mess around with the image quality until it looks good enough to use.