1. Jochen Peters
  2. Valentina Reports ADK
  3. Пятница, Июнь 16 2017, 09:24 PM
  4.  Подписаться через email
I have Mark the print using XOJO ADK but work Perfect from the Valentina Studio PRO print perfect.
from xojo work bad way
Вложения
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Alexis,

1) Which OS are you using for it?
2) Do the versions of ADK and VStudio match?
3) Could you please try to generate PDFs from ADK and VStudio? Are they different, too?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
is on windows 10

i have to check version
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
i am using 7.2v
is on windows 7 pro 64bits
Yes same version XOJO ADK and Valentina Studio and after print the BarCode i try to scan with a barcode scanner and no recognised the barcode i am using code 128
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
1. So it is always printed smaller from Xojo?
2. Can't recognise barcode printed even from VStudio?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
yes Sergey
barcode scanner no recognise even from VStudio
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
i have to test other barcode scanner to see but it read perfect from any product barcode
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
this is my project
Вложения
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
sorry
but my customer is waiting for me for finish my project
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
About wrong 128 barcode - yes, it looks like it is incomplete, we'll check&fix it ASAP
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Please attach how you send it to the printer. Which parameters do you set for PrintToLocalPrinter?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
The width is too small to fit this barcode.
And width depends on the length of the word - the longer the word, the bigger this code is.

Is it possible to use IDs of fixed widths?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
mReport.PrintToLocalPrinter("ZEBRA LP 2443", "paper=BarCode,copies=" + Str(PageCount) + "";)

what is the best BarCode other than code 128
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
RepStrConn="postgresql://host='" + vServerIP + "' port='5432' dbname='" + vServerDbName + "' user='postgres' password='home@2011'"

SqlStr01=" select itemnum,saleprice,qtylabel from barcodeprint where itemnum='" + BarLine + "'"


mprojectPath = GetFolderItem( "OrdenCompras.vsp" )

mProject = new VProject(mprojectPath)

try
mProject.Open()
catch e as VException
dim errNumber as Integer = e.ErrorNumber
dim errString as String = e.Message
MsgBox errString
end

if mProject <> nil then
vCounts = mProject.ReportCount()
end if

try
mReport = mProject.MakeNewReport("PrnBarCode", RepStrConn,SqlStr01 )
mReport.SetParameterValue("param1",Str(ActiveCajaReg))
catch e as VException
dim errNumber as Integer = e.ErrorNumber
dim errString as String = e.Message
MsgBox errString
end


Try
mReport.PrintToLocalPrinter("ZEBRA LP 2443", "paper=BarCode,copies=" + Str(PageCount) + "";)
catch e as VException
dim errNumber as Integer = e.ErrorNumber
dim errString as String = e.Message
MsgBox " Report Print " + errString
end
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
What is the max length of the text you want to put into barcode?
QR code may fit more information in less space, but the scanner is much more complex.

Igor has made a few improvements that will help to fit the code into smaller space.
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
max 25 but i normal use like 15 or less
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
paper=BarCode

What will you get if you skip this printing parameter? Is it easy to check?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
ok
i have to try that on customer site
thanks
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Another thing to try is to set standard paper name.

From VStudio it is printed with the correct size, so what size do you set in the print dialog?

Here are possible values for paper parameter (in the first column, the second value is the corresponding constant in the Windows API):
{ "letter" , DMPAPER_LETTER },
{ "letter small" , DMPAPER_LETTERSMALL },
{ "tabloid" , DMPAPER_TABLOID },
{ "ledger" , DMPAPER_LEDGER },
{ "legal" , DMPAPER_LEGAL },
{ "statement" , DMPAPER_STATEMENT },
{ "executive" , DMPAPER_EXECUTIVE },
{ "a2" , DMPAPER_A2 },
{ "a3" , DMPAPER_A3 },
{ "a4" , DMPAPER_A4 },
{ "a4 extra" , DMPAPER_A4_EXTRA },
{ "a4 plus" , DMPAPER_A4_PLUS },
{ "a4 small" , DMPAPER_A4SMALL },
{ "a5" , DMPAPER_A5 },
{ "a6" , DMPAPER_A6 },
{ "b4" , DMPAPER_B4 },
{ "b4 (iso)" , DMPAPER_ISO_B4 },
{ "b4 (jis)" , DMPAPER_B4 },
{ "b5" , DMPAPER_B5 },
{ "b5 (jis)" , DMPAPER_B5 },
{ "folio" , DMPAPER_FOLIO },
{ "quarto" , DMPAPER_QUARTO },
{ "9 x 11" , DMPAPER_9X11 },
{ "9x11" , DMPAPER_9X11 },
{ "10 x 11" , DMPAPER_10X11 },
{ "10x11" , DMPAPER_10X11 },
{ "12 x 11" , DMPAPER_12X11 },
{ "12x11" , DMPAPER_12X11 },
{ "15 x 11" , DMPAPER_15X11 },
{ "15x11" , DMPAPER_15X11 },
{ "10 x 14" , DMPAPER_10X14 },
{ "10x14" , DMPAPER_10X14 },
{ "11 x 17" , DMPAPER_11X17 },
{ "11x17" , DMPAPER_11X17 },
{ "note" , DMPAPER_NOTE },
{ "envelope" , DMPAPER_ENV_ITALY },
{ "envelope monarch" , DMPAPER_ENV_MONARCH },
{ "monarch" , DMPAPER_ENV_MONARCH },
{ "envelope #9" , DMPAPER_ENV_9 },
{ "envelope #10" , DMPAPER_ENV_10 },
{ "envelope #11" , DMPAPER_ENV_11 },
{ "envelope #12" , DMPAPER_ENV_12 },
{ "envelope #14" , DMPAPER_ENV_14 },
{ "envelope dl" , DMPAPER_ENV_DL },
{ "envelope b4" , DMPAPER_ENV_B4 },
{ "envelope b5" , DMPAPER_ENV_B5 },
{ "envelope b6" , DMPAPER_ENV_B6 },
{ "envelope c5" , DMPAPER_ENV_C5 },
{ "envelope c3" , DMPAPER_ENV_C3 },
{ "envelope c4" , DMPAPER_ENV_C4 },
{ "envelope c6" , DMPAPER_ENV_C6 },
{ "envelope c65" , DMPAPER_ENV_C65 },
{ "envelope invite" , DMPAPER_ENV_INVITE },
{ "c" , DMPAPER_CSHEET },
{ "d" , DMPAPER_DSHEET },
{ "e" , DMPAPER_ESHEET },
{ "japanese postcard" , DMPAPER_JAPANESE_POSTCARD },
{ "fanfold" , DMPAPER_FANFOLD_US },
{ "letter extra" , DMPAPER_LETTER_EXTRA },
{ "legal extra" , DMPAPER_LEGAL_EXTRA },
{ "tabloid extra" , DMPAPER_TABLOID_EXTRA }
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
I make a custom one with name BarCode
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
1) To fit 15 characters into Code 128 barcode, it is necessary to set the width to 50 millimetres.
Also note, the character set of Code 128 is limited to alphanumeric characters, any non-latin symbol will result in an error.

The smallest QR code fits into 11x11 millimetres square, but the scanner is more complex, I don't know if it is an option.

Maybe it is worth to use bigger labels? Or use shorter codes?

2) When you print from the Valentina Studio (and it is printed OK), what paper size do you set in the Print dialog?
Вложения
Комментарий
There are no comments made yet.
  • Страница :
  • 1
  • 2
  • 3


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