Error PrintPreview b

Deutschsprachiges X#-Forum – German language forum

Moderator: wriedmann

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

Re: Error PrintPreview b

Post by Chris »

Hi Martin,

That's strange, this means a global variable is not initialized, while it should be automatically, from an _INIT procedure. Please check your main app, does it include a direct reference to ReportPro2.Runtime.dll ?

Also in the App properties window (again of the main app), General page, what is the selected "Dialect"?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Tudorf
Posts: 50
Joined: Wed Feb 08, 2023 3:43 pm

Re: Error PrintPreview b

Post by Tudorf »

Hello Chris
I have not found a call to the DLL in my programme. The dialect is set to <VO>.

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

Re: Error PrintPreview b

Post by Chris »

Hi Martin,

Thanks, the dialect is correct. For the dll, please check in the <References> node under your application's node in the "Project" window, which ones are included there? Alternatively, you can see them by opening the Application Properties window for this app (main menu Application->Properties, or right click on the App node in the Project window and select "Properties" from the context menu), and in the References tab page, you can see all included references (used libraries) at the bottom.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Tudorf
Posts: 50
Joined: Wed Feb 08, 2023 3:43 pm

Re: Error PrintPreview b

Post by Tudorf »

Hello Chris

Here are my references from the DLL in which the reports are located.
Screenshot 2025-02-18 101930.jpg
Martin
User avatar
robert
Posts: 5078
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Error PrintPreview b

Post by robert »

Martin,
You can remove the references to all the language DLLs, Export DLL and also to the UDF DLL. These are loaded at runtime when needed.
What you need is the Base DLL and Runtime DLL.
You also have several duplicates in the list (with and without the DLL extension). Remove the duplicates.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
FFF
Posts: 1745
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: Error PrintPreview b

Post by FFF »

Re the "loaded when needed": Is that new, or somewhere documented?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Tudorf
Posts: 50
Joined: Wed Feb 08, 2023 3:43 pm

Re: Error PrintPreview b

Post by Tudorf »

Hello Robert

The preview still crashes.
Screenshot 2025-02-18 104517.jpg
I am attaching my XIPEF file. Maybe that will help.

Martin
Attachments
BS-Tastatur_sicherung.zip
(1.23 MiB) Downloaded 597 times
User avatar
robert
Posts: 5078
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Error PrintPreview b

Post by robert »

Martin,
You still have duplicate references, for example VOGUIClasses and VOGUIClasses.DLL
I am not sure if that causes the problem, but it is not correct.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 5078
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Error PrintPreview b

Post by robert »

Martin,
I see that your main app does not have a reference to the Reportpro DLLs. If you add these (ReportPro.Base and ReportPro.Runtime), then the globals inside the ReportPro DLLs will be properly initialized and then it should all work.

You also do not need references to VOReportClasses and VOConsoleClasses and also no reference to XSharp.VFP.
And I see that you're not using SQL, so you can also remove the refence to the VOSqlClasses from all apps.
Most likely, you can also remove the references to VOInternetClasses.

When I do that, then I can compile your apps, but not completely because there are several rc files missing from the code and the DBF files are not there.


Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Tudorf
Posts: 50
Joined: Wed Feb 08, 2023 3:43 pm

Re: Error PrintPreview b

Post by Tudorf »

Hello

Thank you. The preview is running.

Martin
Post Reply