1. Pete Gates
  2. Valentina Reports ADK
  3. Суббота, Август 31 2024, 07:48 PM
  4.  Подписаться через email
Hi,
I have two questions.

First, is it possible for me to hookup to DynaPDF as a PDF renderer using Xojo Reports ADK? I need to use some advanced features of DynaPDF Pro.

Second, is it possible to generate data for a report from user data not a DB datasource? I have a set of arrays in Xojo that I want to fill a VSP report with.

Thanks,
Pete
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hello Pete,

No, it is not possible to use a custom PDF renderer.
Could you specify which features are necessary?

You can generate reports using JavaScript queries. A query can be an array of objects, with each object representing a row in the report.

Here is an example of a JavaScript query with two rows:

Dim query As String = "#!js" + Chr(10) + "[{ ""Column1"": 1, ""Column2"": ""Text1"" }," + _
"{ ""Column1"": 2, ""Column2"": ""MyText"" }]"
Dim report As VReport = project.MakeNewReport("report1", "sqlite:///db.sqlite", query)
</code>

In this case, the datasource can point to any database.
Комментарий
There are no comments made yet.
Pete Gates Ответ принят
Hey Sergey,
Thanks for the quick reply.

I use DynaPDF to do file attachments/data embedding with PDFs as well as the text drawing.

Ok, generating the JavaScript will take as long as creating an in-memory SQLite database, I'll do that instead.

Thanks,
Pete
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
I don't think there is a way to pass an in-memory database as a datasource.

In version 14.5, it will be possible to specify an empty database, but not a pre-filled one, so JavaScript is a better option if SQL operations are not necessary.


Dim r as VReport = p.MakeNewReport( "report1", "sqlite://:memory:", query )
Комментарий
There are no comments made yet.
  • Страница :
  • 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