Valentina Report and MySQL

Hi.
Days ago I bought OmegaBundle for my interest in Valentina Reports and Valentina Studio (VS) mainly.

The issue is that I have created a project with several Reports in VS that connect to a remote MySQL database.

The question: I Do not know how to use them from my xoyo app.
I installed the ADK plugins but nothing else.

Could someone give me an example?

Thank you.

It might also be worth asking this over on the Valentina forums as well.

The installer should have put some example projects in your documents folder.

You have to install the plugin, and copy components from to your project directory. I wrote an article for XDEV magazine, although I don’t recall which edition, but you may be able to look it up on site and get the back issue, in fact just realised as you bought the bundle you’ll have them all anyway.

Just checked, Issue 12.1.

The Xojo app crash in this point:
Valentina.InitReports(“V4RB-M-3…”,“V4RB-W-3…”,“V4RB-L-3…”)

I have tested with Valentina.InitReports ("", “”, “”) and also fails.

I’m following the Xdev example Issue: 12.1 from Paul Budd

[quote=334415:@Cecilio Ruiz Fernandez]The Xojo app crash in this point:
Valentina.InitReports(“V4RB-M-3…”,“V4RB-W-3…”,“V4RB-L-3…”)

I have tested with Valentina.InitReports ("", “”, “”) and also fails.

I’m following the Xdev example Issue: 12.1 from Paul Budd[/quote]

What error?

Have you installed Valentina Studio?
Have you copied plugin to XOJO plug in directory?

Your article in xdev is perfect, very well explained. Congratulations. !!

Yes, I installed Valentina Studio with OmegaBundle serial number. And ADK, I copied (VR4B) ValentinaPlugin.xojo_plugin to the xojo plugins folder.

I have created a project, a survey and a report.

But also with your xdev project is broken at the same point.

Did you also copy the components to your project directory, or ensure that the path to those files is set correctly?

I did not do that. I thought it was only copied when it was distributed.
The whole vcomponents_64 folder?

O How is the path configured?

There should be 10 files in that folder. To test copy and paste them directly next to your application exe.

For distribution you need to set up a “Copy Build Step” that would do this for you normally.

It’s in linux.
I have copied the lib *. * Files to the executable folder. And it has not worked.
Also to “Xojo libs” and did not work.

I have added:

Try Valentina.InitReports ("", "", "") Exception err as VException Dim errNumber as Integer = err.ErrorNumber MsgBox (err.Message) End

But it shows nothing. Only interrupted in Valentina.InitReports

Unfortunately I am not a Linux user so cannot assist beyond what I have given, although the forums over on valentina-db.com may be able to help further.

At the Valentina forum they gave me the solution:

[quote]Please try the following workaround:

  1. Go to the /usr/local/lib in the terminal
  2. Create the symlink depending on the architecture of the target file (32 or 64):
    ln -s vcomponents_64 vcomponents

It is for development with Xojo IDE on Linux, and we’ll provide a fix in the next build. [/quote]

Now it works. And I can continue with your xDev article.