1. Fotis Georgiadis
  2. Valentina Reports ADK
  3. Tuesday, May 10 2016, 08:32 PM
  4.  Subscribe via email
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?
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hi Fotis,

Is it the latest version 6.5.3?
What OS do you use?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Fotis Georgiadis Accepted Answer
Hi Sergey,

This is on Windows 10, and I think I have the latest version installed (how can I check that?)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Sergey Pashkov Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Fotis Georgiadis Accepted Answer
Ok, I checked it and it is version 6.5.3...
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Sergey Pashkov Accepted Answer
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?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Fotis Georgiadis Accepted Answer
I am using MSSQL Server connection.
I haven't tested printing to other destinations yet...
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
Sergey Pashkov Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 7
Fotis Georgiadis Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 8
Fotis Georgiadis Accepted Answer
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...
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 9
Fotis Georgiadis Accepted Answer
Even trying to access the mReport.LocalPrinters.Count property crashes (app quits "unexpectedly";)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 10
Ruslan Zasukhin Accepted Answer
Just in case, while Sergey absent ... did you try trash all on dev machine,
including vcomponents folder, and reinstall?

Sometimes mess of dlls happens
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 11
Fotis Georgiadis Accepted Answer
Thanks Ruslan,

I will try deleting/reinstalling valentina reports and see what happens!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 12
Sergey Pashkov Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 13
Fotis Georgiadis Accepted Answer
Thank you Sergery,

Can you point me the related directories on Windows as well?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 14
Sergey Pashkov Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 15
Fotis Georgiadis Accepted Answer
It seems to work now! Probably the various versions created a mess and that is why it crashed!

Thanks guys! :)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 16
  • Page :
  • 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories