Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #16  
Old 30th September 2006, 08:37
raikar_raviraj raikar_raviraj is offline
Senior Member
 
Join Date: Sep 2006
Location: Mumbai, India
Posts: 112
raikar_raviraj is on a distinguished road
Baan: IV c4, ERP Ln 6.1 - DB: SQL Server, Informix - OS: Windows 2003, Unix
Exclamation file not found error while displaying photo on form

Hi,

I ve used the script that was provided in this thread and used it in a form to display a gif image on the form.
But when i actually ran the form it showed file not found message on the form.
I debugged it and found that in the following code, r.return equals to false.
In the stat.info function r.mode value is false so r.return doesnt gets assigned to value true so the message gets displayed on the form.
Code:
ret.info = stat.info(	igen0100.phto,	r.size,
				r.mode,		r.inode,
				r.dev,		r.uid,
				r.gid,		r.nlink,
				r.ctime,	r.mtime,
				r.atime	)

	r.return = false
	if ( S_ISDIR(r.mode) ) then
		|* DIRECTORY SPECIFIED !!!!
	else
		if ret.info then
			|* FILE OR DIRECTORY IS INVALID !!!!
		else
			|File exists
			r.return = true
		endif
	endif
What could be the problem? i have specified the correct path and i tried putting it on server as well as client machine but the problem still exist.
please help.

Thanks

Regards

Raviraj

Last edited by ~Vamsi : 24th April 2009 at 00:05. Reason: added code tags
Reply With Quote
  #17  
Old 3rd October 2006, 06:43
vaishrii's Avatar
vaishrii vaishrii is offline
Junior Member
 
Join Date: Mar 2004
Posts: 22
vaishrii is on a distinguished road
Baan: Baan4c4 - DB: SQL7 - OS: Windows 2003
Thumbs up Picture on form

Thanks 2 all involved in this post.. (picture on form) specially Vamsi for your valuable suggestions.
I tried this solution for getting employee photo on form & its working fine.
thanks again,

Regards,
Vaishali
Reply With Quote
  #18  
Old 3rd October 2006, 09:52
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Hi Raviraj,

There must be something wrong with your file path. Can you post your file path? Is it hard coded or based on form field (user's selection)? Please post your script also.

Regards,
En
Reply With Quote
Sponsored Links
  #19  
Old 3rd January 2007, 14:09
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Decrease/Reduction of quality in gif when displaying on Baan-forms..!!!

To all who are displaying images on Baan-forms:

I am displaying gif-files on Baan forms, but unfortunately the quality of the images is reduced/decreased. I.e. the actual gif, when opening in any editor or windows-application (Word, Excel, etc) has a much sharper and better quality than when displaying on a Baan form.

Have others encountered this too? Does anyone know why this is? And does anyone have a solution to this issue??

And last but not least: has anyone anno 2007 found a solution for displaying jpg-format on the baan forms rather than being limited to gif only...???

Regards,
Eli Nager

Last edited by en@frrom : 3rd January 2007 at 14:14.
Reply With Quote
  #20  
Old 9th January 2007, 15:05
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
To all,

Just to let you know that I have found the reason for the bad quality of the images. The rgb values were (128,128,128) which gives nearly every second pixel as black/grey worthless quality. After fixing this and matching the rgb-values to be exactly the same as the screen-colour the images are displayed on, it works like a charm..

Regards,
Eli Nager
Reply With Quote
  #21  
Old 9th January 2007, 15:22
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Next step in displaying pictures...

See my new thread for the next funtional step in using images on Baan forms... Any input is appreciated!

Regards,
Eli Nager
Reply With Quote
  #22  
Old 15th May 2007, 22:39
tnzabo's Avatar
tnzabo tnzabo is offline
Senior Member
 
Join Date: Jul 2002
Location: Butler
Posts: 189
tnzabo is on a distinguished road
Baan: BaaN IV C4 - DB: SQL Server 2005 - OS: Windows 2003 SP2
Cool how to implement??

How do you implement this code? Do you make it a 3gl program script that is called from in a normal session code? Do you make it a library?

very interested in trying this out.

thanks - Nikkiz
Reply With Quote
  #23  
Old 16th May 2007, 08:18
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Hi,

You will have to include the script that is attached in this thread to your main script and then use the function:
Code:
igen0100.display.photo.default(<full path and filename to GIF file>)

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #24  
Old 9th October 2012, 13:03
yogesh kapil yogesh kapil is offline
Member
 
Join Date: May 2012
Posts: 78
yogesh kapil is on a distinguished road
Baan: lnfp7 - DB: oracle11g - OS: linex
Hi En,

I am having problem, how can i allow my user to attach any file in customize session and print the file. i saw your code but not able to understand. can you please help me.






Quote:
Originally Posted by en@frrom View Post
Of course you can do it. I use it for instance for items. Per item I could have up to five different images. So the file names are <itemcode>1, <itemcode>2 etc, and the session calls the corresponding images.

The same you can do with your employees...

Good luck!
Reply With Quote
  #25  
Old 13th October 2012, 15:10
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,639
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Ln --> Odm

Quote:
Originally Posted by yogesh kapil View Post
Hi En,

I am having problem, how can i allow my user to attach any file in customize session and print the file. i saw your code but not able to understand. can you please help me.
Hello,

it's a 5 year old B4 post.
In LN use ODM functionality !


Regards
__________________
//Bernd
Reply With Quote
  #26  
Old 7th February 2014, 07:49
kvl8969 kvl8969 is offline
Junior Member
 
Join Date: Feb 2014
Posts: 3
kvl8969 is on a distinguished road
Baan: ERP LN - DB: SQL SERVER - OS: Windows 7
Can any way to use in ERP LN?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BaaN Open World and IVc4 Muetze Open World, Portal & Decision Manager 8 2nd February 2012 10:38
ERPJewels Hitesh Shah Third Party Products 10 6th November 2006 05:38
Should Baan provide a level 2 database driver for SQL server 2000 on BaanIVc4? patvdv Polls and Surveys 6 28th March 2003 13:22
Baan on Oracle Guru for Hire Will travel OracleBaanGuru Jobs and Resumes 1 19th June 2002 15:57


All times are GMT +2. The time now is 22:41.


©2001-2017 - Baanboard.com - Baanforums.com