ReportPro 2.40 Fehler

Deutschsprachiges X#-Forum – German language forum

Moderator: wriedmann

Post Reply
lagraf
Posts: 450
Joined: Thu Jan 18, 2018 9:03 am
Location: A

ReportPro 2.40 Fehler

Post by lagraf »

Hallo,
beim Umstellen einer VO App nach X# bekomme ich beim Ausdruck eines Reports einen Fehler direkt aus ReportPro, wobei ein PrintPreview aber funktioniert! Der Fehler lautet:

Code: Select all

The following error was encountered while moving to the first logical record: 
Object reference not set to an instance of an object.

Code: Select all

oRpReport := RpReport{SELF, GetDefault()+cVorlage+".RPT", GetDefault()}
IF oRpReport:IsValid
	oRpReport:PrinterDevice:Landscape := FALSE
	oRpReport:PrintPreview(cVorlage,cVorlage+".PRN",cVorlage,"Bericht in Bearbeitung...")  // Preview funktioniert
	oRpReport:Print(cVorlage,cVorlage+".PRN",cVorlage,"Bericht in Bearbeitung...")  // Print bringt Fehler
ENDIF
oRpReport:Close()
Ich habe die kurze Routine in eine Standard MDI TestApp eingebaut und als ZIP zum Testen beigelegt.
Franz
Attachments
SEDCARDTest.zip
(212.12 KiB) Downloaded 82 times
User avatar
Chris
Posts: 4899
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro 2.40 Fehler

Post by Chris »

Hi Franz,

Seems to work well here, which RP2 version are you using?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
lagraf
Posts: 450
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: ReportPro 2.40 Fehler

Post by lagraf »

Hi Chris,
I'm using Version 2.40 (see in headline) and I tested my other X# apps with this version, in all apps happens the same:

- with oRpReport:PrintPreview and then printing from the preview it does well
- with oRpReport:Print and direct print I get the same error

It hasn't been noticed yet, because all of my apps work with PrintPreview, but the last app does a batch print to a pdf printer and here I get the error.

Next I will test other versions of ReportPro to see if this happens in all versions I can download.

Franz
lagraf
Posts: 450
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: ReportPro 2.40 Fehler

Post by lagraf »

Hi Chris,
with ReportPro 2.36 the oRpReport:Print is ok while 2.40 brings the error!
ReportPro 2.39 also is ok but it installs in dir Rp236.
Franz
User avatar
Chris
Posts: 4899
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro 2.40 Fehler

Post by Chris »

Hi Franz,

It still works ok here with your test app, even when using PDFCreator for the printer device. I will send you our current set of RP2 dll files, maybe it's something that was fixed since the 2.40 release.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
lagraf
Posts: 450
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: ReportPro 2.40 Fehler

Post by lagraf »

Hi Chris,
thank you for the files, I copied the *.dll and *.pdb files into my RP2.40 bin folder and referenced it.
With these files oRpReport:Print does well!
What's with the 3 Office Files?

So 2.41 and 2.39 run, 2.40 has a problem!

Franz
User avatar
Chris
Posts: 4899
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro 2.40 Fehler

Post by Chris »

Hi Franz,

Great, thanks for your feedback! The office files are used for exporting to Word format etc.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply