cancel
Showing results for 
Search instead for 
Did you mean: 

crystal report direct print preview problem in aspx page

utkal9007-8
Discoverer
0 Kudos
335

When I'm pintting from Crystal Report to my Epson receipt printer or my Sato tags printer it ads blank space on top and after what it shows in the preview. When I'm printing from Visual Studio directly It's Allso happen and My Publish apps all having same issue, Previously working fine But Last 2 days Having Issue, I am Not Installing Any New Software or any thing For Where rinsing error

so it is not the printers.

<code> function Print() {
                      var dvReport = document.getElementById("dvReport");
                      var frame1 = dvReport.getElementsByTagName("iframe")[0];
                      if (navigator.appName.indexOf("Internet Explorer") != -1) {
                          frame1.name = frame1.id;
                          window.frames[frame1.id].focus();
                          window.frames[frame1.id].print();
                      }
                      else {
                          var frameDoc = frame1.contentWindow ? frame1.contentWindow : frame1.contentDocument.document ? frame1.contentDocument.document : frame1.contentDocument;
                          frameDoc.print();
                      }
                  }

Before

after clicking direct print header is gone

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

What version of CR for VS runtime are you using?

The Viewers print button uses the PrintToPrinter() API so it must have access to the printer it was designed with.

Install the printer on the WEB Server

Edit the Report and select the printer and check on the Dissociate option under Page Setup and save the report.

FYI - IE is no longer supported so you should be testing using one of the other browsers.

You can get SP 33 from here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Upgrade your project and test again.

Answers (1)

Answers (1)

0 Kudos

same problem