1. Stefania Georgiadi
  2. Valentina Reports ADK
  3. Dienstag, Mai 10 2016, 08:32 PM
  4.  Abonnieren via E-Mail
Hello everyone,

The following code crashes:
mPicture = mReport.PreviewPage(mCurrentPage)

mReport is constructed, has 21 pages, mCurrentPage is 1 (integer), mPicture is a Picture variable.

Any ideas?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Fotis,

Is it the latest version 6.5.3?
What OS do you use?
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Hi Sergey,

This is on Windows 10, and I think I have the latest version installed (how can I check that?)
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Thank you, we'll check it as soon as possible.

The fastest way to get the current version is to view properties of DLL from VComponents folder, for example:
C:\Program Files\Paradigma Software\vcomponents_win_vc\vclient_release_x86.dll

Tab Details will show the version.
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Ok, I checked it and it is version 6.5.3...
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
This example with preview works for me (but project needs to be copied to build directory before clicking Open Project - we'll fix it):
C:\Users\user\Documents\Paradigma Software\V4RB_6\Examples\VReport\GeneralOnValentina

Do you use a local reports project or Valentina Server is used?
What about printing to disk or buffer - will it work?
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
I am using MSSQL Server connection.
I haven't tested printing to other destinations yet...
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
I mean the project file is on local disk, not on the Valentina Server.

You call VReport.PageCount and it returns number of pages - 21.
Then you call VReport.PreviewPage and it crashes, and the reason is not an uncaught exception

Correct?

I'm asking, because in the recent versions MakeNewReport was modified to postpone the report generation stage to allow to set the query parameters.
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Yes actually the project file is next to the .exe.
Also I call the PageCount property and it returns 21.

Now I will try to see if there is an unhandled exception there, and let you know.
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Also I saw that now nothing works.
1. The "GeneralOnSQLite" example VReport for Xojo on OS-X crashes on
efMenu.ListIndex = 0 (Action of the Open Project button) or if I comment that and the following line it crashes on
Dim printers As VStringArray = mReport.LocalPrinters (efMenu -> Change event)

2. My old projects that used Valentina Reports V.5 no longer work (application doesn't run with error).

And how can I update a Version 5 project to a version 6 project?

Could it be that all the problems start from having the older version 5 still installed?

I need to get the reports working, and I am stuck!

Any help will be greatly appreciated...
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Even trying to access the mReport.LocalPrinters.Count property crashes (app quits "unexpectedly";)
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Just in case, while Sergey absent ... did you try trash all on dev machine,
including vcomponents folder, and reinstall?

Sometimes mess of dlls happens
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Thanks Ruslan,

I will try deleting/reinstalling valentina reports and see what happens!
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Agree, it's better to start from reinstalling, because it is not possible to have two versions on developer system.

1. Remove following items on OS X
/usr/local/lib/vcomponents
/Users/user/Paradigma Software/V4RB_6
/Applications/Xojo 2015 Release 4/Plugins/ValentinaPlugin.xojo_plugin

Make sure, that an old version of V4RB plugin is removed from Plugins folder, too

Install, copy to Xojo Plugins folder. Will the example work now?

2. As for the old project - does it contain vcomponents? If it doesn't, then it relies on the vcomponents installed in system.
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
Thank you Sergery,

Can you point me the related directories on Windows as well?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Yes, of course.

C:\Program Files\Paradigma Software\vcomponents_win_vc
C:\Users\user\Documents\Paradigma Software\V4RB_6
C:\Program Files\Xojo\Xojo 2016r1.1\Plugins
Kommentar
There are no comments made yet.
Stefania Georgiadi Akzeptierte Antwort
It seems to work now! Probably the various versions created a mess and that is why it crashed!

Thanks guys! :)
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories