1. Víctor Vázquez
  2. Valentina Reports ADK
  3. 金, 6月 09 2023, 06:32 AM
  4.  メールで購読
Buenos dias tengo un problema al imprimir con Valentina Reports 12.4.4 en XOJO con cualquier tipo de reporte que tiene mas de una página:Todas las páginas se ven correctas en la pantalla. Pero al enviarlas a la impresora sale correcta la primera página pero a partir de la página 2 se empieza a imprimir con una rebaja del 50%, la tercera con otro 50% sobre la segunda, la tercera con otro 50% sobre la tercera y asi sucesivamente va disminuyendo hasta la última página (si el informe tiene más de 4 hojas ya casi ni se ve el informe dentro de la página porque solo mide un centímetro de ancho por 1,5 de alto aprox.). No importa el tipo de impresora que uilice y lo mismo ocurre si la impresión se envía a impresoras como DoPDF, AdobePDF, CutePDF, etc.
Si en lugar de enviar el informe directamente a una impresora genero un PDF desde la propia Valentina en XOJO entonces el PDF se genera correctamente.

Adjunto 2 ejemplos: Uno enviado directamente a la impresora y otro generando un PDF desde XOJO sin pasar por ninguna impresora. Y pongo a continuación el código que utilizo para hacer los 2 tipos de impresión (obtenido del ejemplos que vienen con Valentina). Les agradecería mucho si me pudieran dar una solución a este tema ya que soy muy urgente para solucionarlo para mis clientes.

Enviarlo directamente a la impresora predeterminada (incluso si es una impresora PDF como DoPDF o AdobePDF), es cuando imprime bien SOLO LA PRIMERA PAGINA y comienza a disminuir de tamaño a partir de la segunda página. Es el ejemplo "Presupuesto 2.rar":

If mReport <> Nil Then
mReport.PrintToLocalPrinter( )
End If


Y ahora generando la impresión directamente el PDF desde Xojo (funciona correctamente, es el ejemplo "Presupuesto 2 OK.rar";):

if mReport <> nil then
dim f as folderItem
// Create temporary file
f =getSaveFolderItem( "*.pdf", NombrePDF )
mReport.PrintToDisk( f, EVReportPrintType.kToPDF, 1 )
end if
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Víctor,

We’ll check it shortly.
Does it affect all reports you have printed?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
What if you try to print with Valentina Studio 12.4.4?
コメント
There are no comments made yet.
Víctor Vázquez 承諾済みの回答
Good morning Sergey
Yes, this problem occurs with any type of list that you send to the printer and that has more than 1 page.
I am using 12.4.4 because it is the one I had installed when I initially made the application. I had tried to use the new version of Valentina 13.3 but it gave me an error after executing the application already in EXE format because a message came out saying that it had been developed with a more modern version (I suppose because the files necessary to distribute the application would have to be changed ) ), but I couldn't stop to investigate the real reason since it was more urgent to finish the application for the client....

Thank you so much
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
What if you try to create a new test project in Valentina Studio and try to print?
We need to find a way to reproduce it.
I've attached a link to an older version of Valentina Studio, just in case.
参照
  1. http://valentina-db.com/download/prev_releases/12.4.4/win_64/vstudio_x64_12_win.exe
コメント
There are no comments made yet.
Víctor Vázquez 承諾済みの回答
But I will have to uninstall the version 12.4.4 that I have installed.
Do I have to uninstall something else before installing this other one that you tell me?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Valentina Studio 12 and 13 are installed to different folders, so no need to uninstall.
コメント
There are no comments made yet.
Víctor Vázquez 承諾済みの回答
What if you try to create a new test project in Valentina Studio and try to print?
We need to find a way to reproduce it.
I've attached a link to an older version of Valentina Studio, just in case.



I have created this project in XOJO starting from the GeneralOnSQLite example project and using Valentina 12.4.4
I have also created a server with a database and a single table that I use with Valentinda's vReport.
The resulting listing is a 7 page listing. Everything looks correct on the screen, but when printing to any printer, each new page after the first is 50% less than the previous page.
How can this situation be solved?

Thank you so much
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Setting PreviewZoom property of report affects printing, please try to remove it if not used.
コメント
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