31
Web Server - Ask For Help / Use DRAW to Create QR Code in NT app?
« Last post by rjolda on October 29, 2025, 12:19:02 PM »Hi,
NT 14.36 C11.0136
I want to generate a QR code with DRAW. I am currently doing it with ezCam but if I can do it with DRAW it will be much cleaner.
PROBLEM. DRAW requires an Image. I have tried creating QR without the Image on a window and it does NOT work.
If I place an IMAGE on the window, I have to DISPLAY the image and then I can write it to a PNG file.
The documents state that displaying the image is optional- however, If I don't display the image, it will not save ( save writes a black square ).
Anyone with insight?
Do I have to try to write it to an Image file in NT first?
Thanks,
Ron
NT 14.36 C11.0136
I want to generate a QR code with DRAW. I am currently doing it with ezCam but if I can do it with DRAW it will be much cleaner.
PROBLEM. DRAW requires an Image. I have tried creating QR without the Image on a window and it does NOT work.
If I place an IMAGE on the window, I have to DISPLAY the image and then I can write it to a PNG file.
The documents state that displaying the image is optional- however, If I don't display the image, it will not save ( save writes a black square ).
Anyone with insight?
Do I have to try to write it to an Image file in NT first?
Thanks,
Ron
32
Available For Hire / Re: Available for hire, call me now!
« Last post by kaptice on October 29, 2025, 02:58:02 AM »I have project for building web app based using Net Talk on existing desktop app in clarion
33
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by rjolda on October 19, 2025, 12:43:10 PM »Solved,
'application/jpg,application/png,application/pdf' is the syntax. However, this will limit the files to pick from to those file types.
The user can use "All files' and upload something else. So, they can get around it.
This is where the code above from Osquiabro comes in. If someone overrides the suggested file types and actually uploads something like a BMP file, then his code will intercept it and delete it with a message.
Ron
'application/jpg,application/png,application/pdf' is the syntax. However, this will limit the files to pick from to those file types.
The user can use "All files' and upload something else. So, they can get around it.
This is where the code above from Osquiabro comes in. If someone overrides the suggested file types and actually uploads something like a BMP file, then his code will intercept it and delete it with a message.
Ron
34
Web Server - Ask For Help / Re: Printing Picture on PDF Report very SLOW a- any way to speed up the printing?
« Last post by rjolda on October 19, 2025, 12:37:37 PM »SLow JPG image printing - solved.
I got some insights from folks on discord.
While I used imageEx to shrink original JPG file from 4 MB to 200KB it still printed very slowly.
The answer was to actually change the size of the picture. It was 4080px x 3072 px. I shrunk it down to 408 x 300 and it was the RIGHT size and printed Normally! So the answer for me was taking the original picture and shrinking it to 10% and compressing it with JPG compression to 20 %. Just right!
Ron
I got some insights from folks on discord.
While I used imageEx to shrink original JPG file from 4 MB to 200KB it still printed very slowly.
The answer was to actually change the size of the picture. It was 4080px x 3072 px. I shrunk it down to 408 x 300 and it was the RIGHT size and printed Normally! So the answer for me was taking the original picture and shrinking it to 10% and compressing it with JPG compression to 20 %. Just right!
Ron
35
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by rjolda on October 13, 2025, 03:19:02 PM »Ahhh,
I see how you are doing this.
Thanks,
Ron
I see how you are doing this.
Thanks,
Ron
36
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by osquiabro on October 13, 2025, 02:07:03 PM »for me work in embeded 6 add Late Server Side this code
Mem:FotoExtension = upper(st.ExtensionOnly(p_web.GSV('Loc:Path')))
IF NOT INLIST(Mem:FotoExtension,'JPG','GIF','TIFF','PNG') OR p_web.GSV('Loc:Path')=''
loc:invalid = 'Loc:Path'
loc:Alert = 'FOTO INVALIDA SOLO SE ACEPTAN: JPG,GIF,TIFF,PNG'
p_web.Script('ntAlert("Invalid Document Type.","ALERT");')
remove(p_web.GSV('Loc:Path'))
p_web.ssv(Loc:Path,'')
CLEAR(Loc:Path)
CLEAR(Mem:FotoExtension)
EXIT
END
Mem:FotoExtension = upper(st.ExtensionOnly(p_web.GSV('Loc:Path')))
IF NOT INLIST(Mem:FotoExtension,'JPG','GIF','TIFF','PNG') OR p_web.GSV('Loc:Path')=''
loc:invalid = 'Loc:Path'
loc:Alert = 'FOTO INVALIDA SOLO SE ACEPTAN: JPG,GIF,TIFF,PNG'
p_web.Script('ntAlert("Invalid Document Type.","ALERT");')
remove(p_web.GSV('Loc:Path'))
p_web.ssv(Loc:Path,'')
CLEAR(Loc:Path)
CLEAR(Mem:FotoExtension)
EXIT
END
37
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by rjolda on October 13, 2025, 06:57:37 AM »Hi,
Found it below - just have to uncheck Images and use the "Custom" field. Just have to figure out syntax now!
Ron
Found it below - just have to uncheck Images and use the "Custom" field. Just have to figure out syntax now!
Ron
38
Web Server - Ask For Help / Uploading files loc:AcceptTypes
« Last post by rjolda on October 13, 2025, 02:20:50 AM »Hi
C11
NT14.31
I want to limit the file types that get up loaded in the entry type fileupload to jpg, pdf and bmp.
There is a local variable whichi is : loc:AcceptTypes = 'image/*'
This is set in the template if I check allow images to be uploaded.
How and where can I limit them to uploading ONLY jpg, pdf and bmp files?
THanks,
ROn
BTW it is embedded in here so I do not have a chance to edit it:
If Not (1=0) ! SecFieldHideStateRtn
! --- FILE UPLOAD ---
loc:readonly = Choose(loc:viewonly,'readonly','')
loc:javascript = '' ! MakeFormJavaScript
loc:capture = net:Environment
loc:AcceptTypes = 'image/*'
loc:UseHTML5Uploader = 1
If loc:UseHTML5Uploader = 0 and loc:viewonly = 0
packet.append(p_web.CreateInput('File','JSRV:Envelope_photoname',p_web.GetSessionValueFormat('JSRV:Envelope_photoname'),loc:fieldclass,loc:readonly,loc:extra,,loc:javascript,p_web.PicLength('@s199'),'Press to select or take a picture of keys or envelope to upload','dropPhoto',,'',,,,'SM_UpdateJ_SRVREQ_SMALL_SCREEN',loc:AcceptTypes,loc:Capture,'') & p_web.CRLF)
ElsIf loc:viewonly = 0
loc:fieldclass = p_web.combine(loc:fieldclass,' nt-fileinput')
C11
NT14.31
I want to limit the file types that get up loaded in the entry type fileupload to jpg, pdf and bmp.
There is a local variable whichi is : loc:AcceptTypes = 'image/*'
This is set in the template if I check allow images to be uploaded.
How and where can I limit them to uploading ONLY jpg, pdf and bmp files?
THanks,
ROn
BTW it is embedded in here so I do not have a chance to edit it:
If Not (1=0) ! SecFieldHideStateRtn
! --- FILE UPLOAD ---
loc:readonly = Choose(loc:viewonly,'readonly','')
loc:javascript = '' ! MakeFormJavaScript
loc:capture = net:Environment
loc:AcceptTypes = 'image/*'
loc:UseHTML5Uploader = 1
If loc:UseHTML5Uploader = 0 and loc:viewonly = 0
packet.append(p_web.CreateInput('File','JSRV:Envelope_photoname',p_web.GetSessionValueFormat('JSRV:Envelope_photoname'),loc:fieldclass,loc:readonly,loc:extra,,loc:javascript,p_web.PicLength('@s199'),'Press to select or take a picture of keys or envelope to upload','dropPhoto',,'',,,,'SM_UpdateJ_SRVREQ_SMALL_SCREEN',loc:AcceptTypes,loc:Capture,'') & p_web.CRLF)
ElsIf loc:viewonly = 0
loc:fieldclass = p_web.combine(loc:fieldclass,' nt-fileinput')
39
Web Server - Ask For Help / Re: Printing Picture on PDF Report very SLOW a- any way to speed up the printing?
« Last post by rjolda on October 10, 2025, 12:36:01 PM »Hi,
Charles of Lansrad suggested that I use the Bitmap Class of ImageEx and compress it down - indeed, I can compress it from 3.4M to 300K with little loss in quality for my purposes. Prints faster!
Ron
Charles of Lansrad suggested that I use the Bitmap Class of ImageEx and compress it down - indeed, I can compress it from 3.4M to 300K with little loss in quality for my purposes. Prints faster!
Ron
40
Web Server - Ask For Help / Re: Need to Trap CLOSE of MEMFORM
« Last post by rjolda on October 10, 2025, 12:24:18 PM »Ahhh,
That is the answer. I won't rely on the close button of the Form, but I can create my own close button and do exactly what I want.
Thanks,
Ron
That is the answer. I won't rely on the close button of the Form, but I can create my own close button and do exactly what I want.
Thanks,
Ron
Recent Posts