xsharp.eu • ReportPro 2.40 Fehler
Page 1 of 1

ReportPro 2.40 Fehler

Posted: Wed Jun 05, 2024 11:47 am
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

Re: ReportPro 2.40 Fehler

Posted: Wed Jun 05, 2024 5:03 pm
by Chris
Hi Franz,

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

Re: ReportPro 2.40 Fehler

Posted: Thu Jun 06, 2024 4:28 am
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

Re: ReportPro 2.40 Fehler

Posted: Thu Jun 06, 2024 7:27 am
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

Re: ReportPro 2.40 Fehler

Posted: Thu Jun 06, 2024 9:08 am
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.

Re: ReportPro 2.40 Fehler

Posted: Thu Jun 06, 2024 10:01 am
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

Re: ReportPro 2.40 Fehler

Posted: Thu Jun 06, 2024 10:03 am
by Chris
Hi Franz,

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