The only format that doesn't export is PDF. It gives me the error:. On another note, if I make it so the user chooses the options, I can select PDF and it still gives me the same error.
Thanks for the help. Maybe this is my problem, does anyone know how to fix this? However, it saves a file that is corrupted pretty much and cannot be opened. EDIT: More research. The CRViewer91 doesn't appear to be able to export any format successfully. DLL when what I actually need is the 9.
I've found the one for 9. I'm not exactly sure what was causing all the errors, however, I've fixed it via basically starting a new project from scratch and incorporating only the necessary references and components.
There was also a minor code change that needed to be done, here is the finalized code that works for exporting mine to PDF. I left the commented out FormatTypes in there for anyone else who finds this code useful.
Phillipe, if you would like to "answer" this somehow like this, I would love to give you some rep for all of your help that you provided however. I don't have enough rep to just upvote your stuff so. My last guess: the possibility to export to pdf format needs a specific dll file under the crystal folder does not need to be registered but needs to be here. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Add a Solution. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. We have a PDF printer, which we can use just like any other printer on the server, and it will automatically produce the PDF file. With Report. On the click event of the export, I pass the necessary parameters to the crystal report and then use this statement.
This will bring up the Crystal Report export window where the user can then choose the export type of their choice whether it be word, html,pd fetc. If you want the whole process automated to a fixed export format then use the crystaloptions object above it has all the properties you need.
For example:. ExportOptions CrystalOptions. In VB. Show Err. Export False End With. It is very simple like this: ———————————— Imports CrystalDecisions. Engine Imports CrystalDecisions. Try CrReport. No Account? Sign up. By signing in, you agree to our Terms of Use and Privacy Policy.
Already have an account? Sign in. Active Oldest Votes. Bill Hileman Bill Hileman 2, 2 2 gold badges 15 15 silver badges 23 23 bronze badges. Jon Jon 4 4 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
0コメント