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"?
Error PrintPreview b
Moderator: wriedmann
Re: Error PrintPreview b
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Re: Error PrintPreview b
Hello Chris
I have not found a call to the DLL in my programme. The dialect is set to <VO>.
Martin
I have not found a call to the DLL in my programme. The dialect is set to <VO>.
Martin
Re: Error PrintPreview b
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.
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
XSharp Development Team
chris(at)xsharp.eu
Re: Error PrintPreview b
Hello Chris
Here are my references from the DLL in which the reports are located.
Martin
Here are my references from the DLL in which the reports are located.
Martin
Re: Error PrintPreview b
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
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
The Netherlands
robert@xsharp.eu
Re: Error PrintPreview b
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)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Re: Error PrintPreview b
Hello Robert
The preview still crashes.
I am attaching my XIPEF file. Maybe that will help.
Martin
The preview still crashes.
I am attaching my XIPEF file. Maybe that will help.
Martin
- Attachments
-
- BS-Tastatur_sicherung.zip
- (1.23 MiB) Downloaded 597 times
Re: Error PrintPreview b
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
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
The Netherlands
robert@xsharp.eu
Re: Error PrintPreview b
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
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
The Netherlands
robert@xsharp.eu
Re: Error PrintPreview b
Hello
Thank you. The preview is running.
Martin
Thank you. The preview is running.
Martin

