Crystal report print button open pdf page - pdf

I am working in Crystal report at a project. I have a requirement and I need Help On following metter:
I have crystal Report in my webpage. The .net Crystal report viewer views this report. But when I click the print button on crytal report viewer it exports the report in .pdf format. I don't want to click again and again. I want to open the print dialog Box instead of exporting at .pdf formet.
Is it Possible??? if yes How???
Help Me.....

From what I can see it is definitely doable. Some people also raise custom JavaScript print dialogs instead of the MS one. Here are a couple of examples of more traditional print dialogs:
This SO thread shows you how to do it with and without a print dialog box.
Look at the bottom example on this thread

Related

MVC print PDF without displaying in view with print dialog

I have an MVC app where the intention is for the the user to click Print, and in the subsequent print dialog, verify the target printer, number of copies, etc, and click Print. I'm rendering the PDF document and returning the document thusly:
return File(printJob.Bytes, "application/pdf");
This displays the document quite nicely in the browser. In both Chrome and Edge, when the user clicks Print, they get a preview of the page in the print dialog. So the user experience is they click Print, see a preview, click print, see a preview again and then click print. Does anyone know if it's possible to render the PDF document without displaying it in the browser and instead just present the user with the print dialog box?
Thx in advance!
When you return the PDF from your website, the browser is then acting as a PDF viewer instead of a web browser, so you need to get the PDF to request the print dialog on open, not the website.
You can achieve this by adding the document javascript this.print(true) into the PDF that you are generating.
You can test this in Adobe Acrobat by going to Javascript -> Edit All Javascripts and just pasting this.print(true) at the top outside of any named function.
Tested and working on Chrome, as soon as you open the PDF it displays the print dialog.
Acrobat Javascript Reference is here, the reference to the print function is on page 179.

Crystal Report Default Picture not changing to my Path Picture

Why is it the Old picture in my crystal report is not changing to my Path Image?
What wrong with my steps?
Insert Picture Box and Select Any image.
Format Object
Select Picture Tab control
Modify Graphic Location
In Formula Workshop i've drag the fields contains my Path Image
Then Save.
Still not working. Is there something wrong?
Please help me.
Finally I found an answer to my question.
All my steps are correct but the error is in the vb.net [Picturebox].
before I will click the print button to print my report, In the form there is a picture box that display the image of the path that I will be using in the crystal report. So when the crystal report loads. The default image is showed not the image from path it because picture box is still using the image; that's why Crystal Reports cannot open the image.
Hope this is the correct reasons to my problem.
For users wondering why the image in their Crystal Reports load some time and some time not. It is because maybe you open the form that contains that image. For example you have a form company profile and there is a image of company there. Then you have some reports that will be using the company image just for the header part; then your problem is the image load correctly but some time is not. Try to dispose the image in the company form when you close the form so that the crystal report can use the image.
picturebox1.image.dispose()

Report DevExpress MVC 4

I made a report in devexpress with paper size A5 rotated, report preview in DevExpress is good.
When I click print in google chrome, the result report is different with preview in report DevExpress.
Any reason What might be causing this?
DevExpress XtraReport can not generate "pixel perfect" document for all exists platforms.
you need to manually tuning your report layout so it will meet your requirements.
also make sure that chrome printing pdf document, not html.

Page setup during print preview in Crystal Reports for VS 2010

Is it possible to see the page setup during print preview of crystal reports during run time?
Because there are times that we need to set the top and bottom margin of the report.
I am not sure about the report margins, but I have seen something to control the Size in % of the report. You set the %size of the report before you print the rpt.

How do you print and export when using Dundas charts in VB or C#

I'm using Dundas Chart Profession within my VB program to generate a chart based on my data. Right now I have my charts opening fine but I am unsure how to add the functionality to let the user choose to print (and export) the chart once the program is running.
I didn't figure out how to export the chart but I have figured out how to print and save it.
To print:
To print the chart I found the solution here. This is on the Dundas Data Visualization Components Support page labeled under "Customizing the size of printed chart". Also in case you are wondering how they got the PrintDocument, like me, it is located under System.Drawing.Printing.PrintDocument.
To save:
To save all you have to have is
ChartName.SaveAsImage("pathwayAndFileName.png", ChartImageFormat.Png)
Where ChartImageFormat is under Dundas.Charting.WinControl and png can be any extension under Dundas.Charting.WinControl.ChartImageFormat. Of course this ran into having to know the filename and pathway that the user wants to use so I researched how to do the dialog for saving, built in, as I didn't want to recreate it myself. I found the SaveFiledialog under System.Windows.Forms where they also have open, load, and print. Of course I already had the other print.
To set the initial directory it uses is
dialogName.InitialDirectory = Application.StartupPath
Then open it with ShowDialog