cancel
Showing results for 
Search instead for 
Did you mean: 

CR for VS 2010 Beta and Productuin Version at ASP.NET 4.0 prinitng problem

Former Member
0 Kudos

DEVELOPRT ENV : VS 2010

NET FRAMEWORK : 4.0 32 bit

CR : CR for VS2010 Production Version

After click on Print Button , and selecting OK on Acrobat Reder Print Option , my asp page stop working, when clicking on another button nothings happen`s only IE Progres Bar Reload, but i can use evrything on crystal reports toolbar: zoom , sesrch, print , export etc. After 4-5 clicking on page IE opening new Windows with correct page , and it`s work ok unless next print click.

Problem only with Print option , export to pdf and another format works ok .

This problem is independent with Browser and OS.

Edited by: celmar on Nov 28, 2010 12:50 AM

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

This is usually due to IIS not having access to the printers. Search MS's site or here for more info on how to enable Printers for ASP applications.

It may also be due to the CR Printer ActiveX control not being installed or allowed access. Use something like Fiddler to see what is happening on your page.

Thank you

Don

Former Member
0 Kudos

I use emebeded Print Button from CR toolbar and printing via pdf on local machine not on server printer, so that i dont thing that it coud be problem with IIS acces to printer.

Problem dont exist when Print Mode on CrystalReportsViewer is Set on AxtiveX mode, ONLY IN PDF MODE.

Edited by: celmar on Nov 28, 2010 10:07 AM

0 Kudos

Hi Celmar,

Thank you for clarifying where you are printing from.

Can you open up any PDF file in the Browser and print, not a CR pdf?

If you use Fiddler on your local PC it should show you what the problem is:

http://www.fiddler2.com/fiddler2/version.asp

There are other tools you can use also.

I can't suggest what to do unless you can tell me what the error is other than not printing...

Thank you

Don

Former Member
0 Kudos

In filder i don`t see anything abnormal , what`s strange :

- after click on Print Button Borwser Download pdf(i see it in Fidler) , and show me PrinPreview with Print and Cancel button:

- when click cancel evrything works ok , i don`t have any problems

- when clcick print Windows geting Print Task , i see dowload progres Bar and Doucment is Printing , after click print i dont see any other request at Fidler.

After Click Print on Cr Toolbar and Print on Pdf Preview , avery click on site work`s like Async Potback (i don`t use AJAX ), event`s (Button Click and Mthod body work`s ok).

Pdf in browser work`s ok.

Edited by: celmar on Nov 29, 2010 11:41 AM

0 Kudos

Hello,

I just realized that you indicate BETA in the subject line. What version of Cr assemblies are you using? Version 13.x. or 14.x?

Thank you

Don

Former Member
0 Kudos

I use production Version - 13 (13.0.2000.0) but at production server i have Beta relase yet and problem looks this same.

Edited by: celmar on Nov 29, 2010 11:18 PM

Edited by: celmar on Nov 29, 2010 11:19 PM

former_member183750
Active Contributor
0 Kudos

See if KB [1532954 - Print job not submitted when using PrintMode PDF with the Crystal reports DHTML viewer|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333332333933353334%7D.do] helps.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

former_member183750
Active Contributor
0 Kudos

Your last post was deleted. Please see the rules of engagement, then repost as described in the rules.

Ludek

Former Member
0 Kudos

I don`t have problem with printing it`s works ok, my problem is after printing, my aspx page don`t repons.

I have registered crystalReportsViewer_Error event and after Print Button click program occurs event :

HResult = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

M_eeror_messgae = "Thread was being aborted."

0 Kudos

Hi Celmar,

Sorry but your replies are a little hard to read so it's hard to interpret at times.

To clarify, In your preview the report works fine, you then want to print it using the CR Viewer and the pages are sent to the local computer. It's not clear if you are streaming the pages from the app server or sending the report as a PDF to the local computer or ?????

You also wrote: "Problem don't exist when Print Mode on CrystalReportsViewer is Set on AxtiveX mode, ONLY IN PDF MODE."

Crystal Reports Viewer does not have a PDF MODE so I believe the problem is once you preview the PDF file that CR generated and your app streamed to the local computer and previewed in the browser and then closing the PDF viewer is where the error happens correct?

So it would suggest that closing the browser after viewing a PDF doc is where the issue is correct? I don't see this being a CR issue. Have you posted your question to the Adobe site?

Thank you

Don

Former Member
0 Kudos

Sorry if something is not clarify , i try once again :

- I want print from CrystalReportViewer embeded Print Button on Toolbar.

CrystalReportViewer has property PrintMode I use Pdf

(CrystalReportViewer.PrintMode = PrintMode.Pdf;)

After Click Print Button I see Pdf Preview (Adobe Acrobat Reader Window) with print option and Cancel, Print Button .

If i select Print report`s are corect printing on selected printer, after this operation ma aspx page stop work with full postback and work like a async postback. Page don`t show any error`s on web browser.

If i uninstall Acrobat Reder Print Work like a export ... and then evrything works ok.

In findler i don`t see anything abnormal.

Answers (0)