Problem with EPC URI to Hex conversion
Hi Forum,
I am getting strange EPC URI to hex conversion result in tx:/ain/http_test . Could you please confirm if this result is not expected.
1.URI : urn:autoid:tag:sgtin-96:3.0066800.054321.70
hex is : 30740413C00000D431000000
2.URI: URN:AUTOID:TAG:SGTIN-96:3.0066800.054321.71
hex is: 30740413C00000D431000000
thus is both case HEX is same!!!
i am using EPC_1.24 as active EPC version.
could you please suggest some round about way.
thanks in advance,
regards,
Ashit
hi,
i think problem is with EPC_1.24. i changed to
EPC_1.27
and it works fine.
regards,
Ashit
Similar Messages
-
Problem with field-symbols in UNICODE conversion
Hi all.
I'm in a UNICODE conversion project and I have a problem with a program that uses field-symbols.
DATA: BEGIN OF wa_data_aux,
mandt LIKE zindices-mandt,
kschl LIKE zindices-kschl,
datab LIKE zindices-datab,
valor LIKE zindices-valor,
descripcion LIKE zindices-descripcion,
ernam LIKE zindices-ernam,
erdat LIKE zindices-erdat,
waers LIKE zindices-waers,
END OF wa_data_aux.
FIELD-SYMBOLS:
<fs2> TYPE ANY,
<fs3> LIKE wa_data_aux.
<fs2> = <fs3>.
This assignment results in a DUMP.
Can anybody help me to solve this problem?
Thanks!!TYPES: BEGIN OF wa_data_aux,
mandt TYPE mandt,
kschl TYPE kschl,
erdat TYPE d,
waers TYPE waers,
END OF wa_data_aux.
DATA: w_aux TYPE wa_data_aux.
FIELD-SYMBOLS:
<fs2> TYPE ANY,
<fs3> TYPE wa_data_aux.
w_aux-mandt = '300'.
ASSIGN w_aux TO <fs3>.
ASSIGN <fs3> TO <fs2>.
WRITE : / <fs2>.
GBY. -
Problem with framemaker 9 to pdf conversion
I have a Framemaker 9p255 book with a lot of equations. When I save the book as a pdf file some equations are not properly written. The left side of the equations are trimmed. The conversion was without problem with the previous version of Framemaker v8. I work with win7 pro 64.
Art,
On the subject of pdf's. I save as PDF because if I print to pdf...I could go home from work and I don't think it would ever make a pdf. But, even saving as pdf, it takes forever!! The longest section in my book is 236 pages. I have all the sections in different books instead of in one big huge file. When I save to a pdf, it takes about 30 minutes. Just seems that is crazy! Now, the pdf is awesome, and has the bookmarks and links, just don't know why it takes sooooo long. I realize this has been talked about alot in this forum. Just wondered if there was any new insight or if that is just the way it is.
Thanks,
ls -
Problem with Sender Adapter File Content Conversion
Hi all!
I have a question about file content conversion in sender file adapter.
I have file like:
{field1
field2
field3
field4
$
{field5
field6
field7
field8
And i need to get file like:
<dealings>
<deal>
<field1>{field1</field1>
<field2>field2</field2>
<field3>field3</field3>
<field4>field4</field4>
<field5>-}*</field5>
</deal>
<deal>
<field1>{field5</field1>
<field2>field6</field2>
<field3>field7</field3>
<field4>field8</field4>
<field5>-}*</field5>
</deal>
</dealings>
I put content conversion parameters:
deal.fieldSeparator = $
deal.fieldNames = field1,field2,field3,field4,field5
And i get a file like:
<ns:mt_swift_file>
<dealings>
<deal>
<field1>{field1</field1>
</deal>
<deal>
<field1>field2</field1>
</deal>
<deal>
<field1>field3</field1>
</deal>
<deal>
<field1>field4</field1>
</deal>
<deal>
<field1>-}*</field1>
</deal>
<deal>
<field1/>
</deal>
<deal>
<field1>{field5</field1>
</deal>
<deal>
<field1>field6</field1>
</deal>
<deal>
<field1>field7</field1>
</deal>
<deal>
<field1>field8</field1>
</deal>
<deal>
<field1>-}*</field1>
</deal>
</dealings>
</ns:mt_swift_file>
What i do wrong?
As i understand, XI put string to a separate tag after symbol 'nl', but how can i get structure without unnecessary tags?Hi,
Check some links for FCC
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
File Receiver with Content Conversion
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
File Receiver with Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Phani -
Problem with file URI for external DTD
Hi All,
I am getting UnknownHostException when i am trying to parse an XML data as InputSource
to parser.
The exception is thrown while to trying resolve file uri
set for inputsource to locate DTD.
The code works fine in of the Solaris machine but it throws this exception in
one particular machine (solaris again). On both Weblogic6.0 with SP2 is running.
The host "local" it says Unknown is infact a directory.
I am unable to figure what is wrong. Please let me know asap the reason and if
there is any solution.
I am attaching the piece of Code and the Exception stack trace.
thanks
ashok
-------------------code-----------------------
public boolean doParse(InputSource input)
throws IOException
try{
String realPath=FileHelper.getApplicationRoot();
SAXParser sp = new SAXParser();
sp.setContentHandler(this);
sp.setFeature("http://xml.org/sax/features/validation",true);
sp.setErrorHandler(new MyErrorHandler(System.err));
input.setSystemId("file:///"+realPath+"/dtd/");
CmgmtOutput.write("System ID set "+input.getSystemId(),1);
sp.parse(input);
}catch
------------------Exception--------------------
java.net.UnknownHostException: local
at java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at java.net.Socket.<init>(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.NetworkClient.openServer(NetworkClient.java:38)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:267)
at sun.net.ftp.FtpClient.<init>(FtpClient.java:381)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:77)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:96)
at java.net.URL.openStream(URL.java:798)
at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:149)
at org.apache.xerces.framework.XMLParser.startReadingFromExternalEntity(XMLParser.java:2652)
at org.apache.xerces.framework.XMLParser.startReadingFromExternalSubset(XMLParser.java:2478)
at org.apache.xerces.validators.dtd.DTDValidator.startReadingFromExternalSubset(DTDValidator.java:1672)
at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1111)
at org.apache.xerces.validators.dtd.DTDValidator.scanDoctypeDecl(DTDValidator.java:450)
at org.apache.xerces.framework.XMLParser.scanDoctypeDecl(XMLParser.java:2102)
at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:876)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
at com.i2.ui.srm.contracts.cmgmt.CMGMTXMLHandler.doParse(CMGMTXMLHandler.java:156)
at com.i2.ui.srm.contracts.cmgmt.CMGMTXMLHandler.doImport(CMGMTXMLHandler.java:96)
at com.i2.ui.srm.contracts.cmgmt.CMGMTXMLImportHandler.doImport(CMGMTXMLImportHandler.java:178)
at com.i2.ui.srm.contracts.cmgmt.CMGMTXMLImportHandler.handleEvent(CMGMTXMLImportHandler.java:77)
at com.i2.ui.srm.contracts.cmgmt.CMGMTXMLImportHandler.invoke(CMGMTXMLImportHandler.java:42)
at java.lang.reflect.Method.invoke(Native Method)
at com.i2.webdriver.rwadmin.pages.PageController.handlePage(PageController.java:337)
at PageServlet.doPost(PageServlet.java:374)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)By making BODY mandatory with 1 record, i am getting the below given error message in Adapter monitoring...
Sender Adapter v2722 for Party '', Service 'BS_MRS':
Configured at 2007-08-29 09:40:17 BST
History:
- 2007-08-29 09:46:26 BST: Retry interval started. Length: 2.000 s
- 2007-08-29 09:46:26 BST: Error: Conversion of complete file content to XML format failed around position 0: Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'TRL'
- 2007-08-29 09:46:26 BST: Processing started
- 2007-08-29 09:46:24 BST: Error: Conversion of complete file content to XML format failed around position 0: Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'TRL'
- 2007-08-29 09:46:24 BST: Processing started
With Regards
Amitesh -
Problems with image size after PAL conversion
I edited my movie (captured in 16:9 mini DV) on Final Cut with all the right settings. I ran the video through DVFilm Maker which gives it a 24P/film-like look. In Final Cut Pro, this footage always looks "squished" but after exporting with Compressor (widescreen preset) and droping into DVD Studio Pro, it is in perfect 16:9 and looks fine.
Now I am trying to convert all this to PAL. I use the same company's DVFilm Atlantis to convert to PAL, and it is even more "squished" than the original, but after exporting with Compressor with PAL settings, it still looks squeezed on DVD Studio Pro.
I should say that I export the NTSC as a Quicktime movie (no conversion) with "current settings" and convert that to PAL.
[One of the options in Atlantis when converting is to "squeeze 16:9 into letterbox" I have done that, but the final product is small with a large black letterbox on all sides.]Nattress' Standards Converter does a bang up job of converting NTSC to PAL. (and his film effects are very good as well) It all can be found at www.nattress.com
Compressor 2 can do this as well but takes longer and the results are less certain.
Cheerios,
x -
Problems with CD Spin Doctor (Mac) conversions to iTunes 10.3
I have been converting all of my old vinyl to CDs for well over a year using CD Spin Doctor 6/Toast 10 to download, filter and edit the tracks. Then I would "Send All Tracks to iTunes" in MP3 format. Up until this week, I could play back each track in iTunes (10.3.1) exactly they way I had edited it.
Now, after the tunes are sent to iTunes and try to play them back, all I hear is the raw, unedited audio for the duration of the edited track time instead of the "correct" audio.
I have reinstalled both CD Spin Doctor 6/Toast 10 and iTunes 10.3, but the problem remains. I want to try to download iTunes 10.2.8(?) for Mac, since I did not have the problem using that version, and I suspect that but I cannot find that old version download for macs.
I can hear the proper edited audio in Spin Doctor, but not in iTunes.
Help!I have Titanium 11 and the most recent Spin Doctor - as of yesterday (auto update), and a mb pro with Mountain Lion.
iTunes (most recent) was working great, no problems. Then I installed Toast Titanium 11 and began using Spin Doctor. The interface is great, and it imported my .aiff files fine....but when I saved my working file as the native Toast format....the file wasn't there! I tried twice - no file! when I save as an .aiff file the file is there but no song separations. Just the long .aiff file. And when I play the tracks the arrow doesn't move but the track keeps playing and I can't pause it, so it keeps going.
Then I got frustrated and quit SD, I booted iTunes and got the error 'The iTunes library (name) is locked and you don't have the permissions to change the files' or something like that! This didn't happen until I installed Roxio....for only one hour!
Anyone else?? -
Problems with audio on iMovie 10 conversions.
I just converted my videos from iMovie 7 to iMovie 10. Now all of the audio on these videos has loud high pitched beeping sounds. How can I fix this?
Could be corrupted permissions and preferences.
Sometimes permissions and preferences can get corrupted. Whenever iMovie starts acting funny, a common maintenance procedure is to do the following: Delete preferences by closing iMovie and trashing the file com.apple.iMovie.plist found in User (the House icon)/Library/Preferences. Then do a permissions repair using the Utilities/Disk Utility App on your Mac. Open the Disk Utilities window and select the Mac hard drive icon at the top of the side pane at the left. Then click on the Repair Permissions button. When you have repaired permissions and deleted preferences, restart your computer and launch iMovie. iMovie will replace the .plist file that you deleted. Be sure also that you have sufficient free disk space on your hard drive for iMovie to function correctly. 25GB often is recommended by users of this forum. After doing all of the above, relaunch iMovie and see whether you still have the problem. -
Problem with type conversion and primary key during row fetch
[Note, this error occurs in Oracle XE, APEX 2.1.0.00.39]
I have been having a problem with Automatic Row Fetch:
ORA-01460: unimplemented or unreasonable conversion requested
So in an effort to resolve this, I created a PL/SQL process with the query below and was able to isolate the same error. The problem seems to come from one of the primary keys being a "number" type (APP_ID). The error occurs on the line:
where u.app_id=:P5_APP_ID
I have tried the following variations on this line in an effort to resolve this, but all generate the same error:
1) where to_char(u.app_id) = :P5_APP_ID
2) where u.app_id = to_number(:P5_APP_ID)
3) where to_char(u.app_id) = to_char(:P5_APP_ID)
I've also tried the laternate syntax "&__." and "#__#", but these don't function in the Source field and show up as syntax errors.
Any suggestions are welcome.
begin
for r in (
select app_name, apptype, appcreator, appurl
from application_users u, application_info i
where u.app_id=:P5_APP_ID
and i.app_id=u.app_id
and u.username=:P5_USERNAME)
loop
begin
:P5_APP_NAME := r.app_name;
:P5_APPURL := r.appurl;
exception
when others then
raise_application_error(-20000,'In Loop Failure',true);
end;
end loop;
exception
when others then
raise_application_error(-20000,'Out of Loop Failure',true);
end;
Thanks in advance,
BarneyI found a prior post referencing a similar issue and it was solved by using the "v(__)" syntax. This did resolve my issue, however, I have a quick follow-on which I'm hoping someone can answer quickly...
Since the "v(__)" syntax won't work for the Automatic Row Fetch (at least to the best of my knowledge), I have to do a manual process. However, the manual query as shown above doesn't actually populate any of the form values through the bind variables. They all remain at their cached values from prior data entry on the form.
Is using the bind variables for assignment incorrect, or is there something that must be done to get the updates to show up in the form (ordering of processes, etc.).
My manual process is running in the Load: Before Header state so I would have expected it to update all of the fields.
Thanks in advance,
Barney -
Problem with conversion of strings like THISStr - this_str capitalization
Problem with conversion of strings like. THISStr -> this_str
Can anybody pass on the reverse code. I have one, but its faulty.
public static String convertFromPolycaps(String str) {
Pattern pattern = Pattern.compile("\\p{Upper}+");
Matcher matcher = pattern.matcher(str);
StringBuffer result = new StringBuffer();
// We do manual replacement so we can change case
boolean notFirst = false;
int grpP = 0, grpA = 0;
String last = "";
String now = "";
while (matcher.find()) {
grpA = matcher.end();
if (notFirst) {
now = matcher.group().substring(0).toLowerCase();
if (grpA - grpP > 1) {
matcher.appendReplacement(result, now);
result =
new StringBuffer(
result.substring(0, (result.length() - 1))
+ "_"
+ result.substring(result.length() - 1));
} else {
matcher.appendReplacement(result, "_" + now);
} else {
matcher.appendReplacement(result, matcher.group().substring(0).toLowerCase());
notFirst = true;
grpP = matcher.end();
////index++;
last = now;
matcher.appendTail(result);
System.err.println(str + " : " + result.toString());
return result.toString();
}succesfully converts :
AccountNmnc : account_nmnc
CustNameJ : cust_name_j
Resume : resume
BeneBrCode : bene_br_code
ApprovedPerson : approved_person
but fails for:
GLCode : glcode
VISHALErrCode : vishalerr_code
GHASUNNAcNo : ghasunnac_noCan anybody pass on the reverse code. I have one, but
its faulty.Post it, I'm sure we can fix it... -
Problem with File Content Conversion
Hi All
I am facing a problem with file content conversion.
This is my sample file structure:
Header_Record (Occurance - 1)
Field1 in Header
Field2 in Header
Item(Occ-1 to n)
Field3 in Item
Field4 in Item
<<ItemType>> (Structure in Item) (Occ - 0 to n)
<<Field5>> in ItemType
<<Field6>> in ItemType
<<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
<<<<Field7>>>> in ItemTypeCategory
<<<<Field8>>>> in ItemTypeCategory
Footer_Record (Occurance-1)
Field9
Field10
There is a key field 'Type' in all the above records with unique value in each record.
Now, I defined Field content conversion as follows:
Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
Recordset Sequence: Ascending
KeyField Name: Type
Following are parameters defiled:
Header_Record.Keyfieldvalue: 00
Header_Record.fieldseperator: ,
Header_Record.fieldnames: Field1,Field2
Header_Record.endseperator: 'nl'
Item.keyfieldvalue: 05
item.fieldseperator: ,
item.fieldfieldnames: field3,field4
item.endseperator: 'nl'
ItemType.keyfieldvalue: 10
itemType.fieldseperator: ,
itemType.fieldfieldnames: field5,field6
itemType.endseperator: 'nl'
ItemTypecategory.keyfieldvalue: 15
itemTypecategory.fieldseperator: ,
itemTypecategory.fieldfieldnames: field7,field8
itemTypecategory.endseperator: 'nl'
Footer.keyfieldvalue: 20
Footer.fieldseperator: ,
Footer.fieldfieldnames: field5,field6
Footer.endseperator: 'nl'
Now, i pass the following file:
00,111
05,222
10,333
15,444
20,555
What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
00,111
05,222
<<10,333>>
<<<<15,444>>>>
20,555
But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
00,111
05,222
10,333
15,444
20,555
Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
Can you please tell me how should i change my FCC config?
Sorry for this long question.
Many Thanks
Chandra
Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PMYou will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
Root
--Recordset
Group1
Fields
Grop2
Fields
Group3
Fields
VJ -
Problem with file content conversion in receiver file adapter
Hi All
I have a problem with file content conversion in receiver file adapter.
This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
These are the content conversion parameters:
Header_Record.fieldSeparator = ,
Header_Record.endSeparator = 'nl'
Claim_Record.fieldSeparator = ,
Claim_Record.endSeparator = 'nl'
Check_Rec.fieldSeparator = ,
Check_Rec.endSeparator = 'nl'
In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
But, Adapter status is RED with the following error message:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
In communication channel monitoring, i get the following error message:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
What is going wrong here? Can anyone please tell me?
Thanks
ChandraPosted in Incorrect forum.
Posted again in Process Integration forum -
HTML to PDF conversion - problems with page-breaks and bookmarks
Hello,
My company is currently considering updating your software (from Acrobat 9 Pro to Acrobat XI Pro) and I’ve been assigned to research its features and make sure that it is a right fit for our goals. Basically we want to automate the whole process as much as possible and we want to create PDF directly from HTML. We’re providing a lot of content in HTML and we need a fast way to transfer it into PDF format. There are however some guidelines:
We want page-breaks in is this kind of documents, and thus - your app needs to be able to interpret HTML and put them where we want to;
We need to have bookmarks in there. Converter must be able to make them based on headlines from HTML source or afterwards, directly in PDF by using some auto-bookmarks feature;
There has to be table of content generated, based on HTML Link Tags if possible. Here’s sample of TOC structure that we have currently:
<A NAME="redirect">sample_text</A>
<A HREF="#redirect">sample_text</A>
Of course we can modify HTML in any way you want us to. The important thing for us is to make it work in PDF without the need to make a lot of manual changes after conversion.
I’ve been messing with Acrobat 9 Pro and reading some documentation that you have provided and I’m convinced that point 3 is not a problem. I’m aware that Acrobat 9 Pro is not having any difficulties with links in document and they work fine in PDF format that has been created from HTML.
Page-breaks on the other hand are bothering me. Your app is apparently ignoring every HTML code that the Internet is advising me to use to force page-break where I want. Honestly - I’ve tested like ten ways to make them and not even one was working. That’s why I’m asking for your help.
Another problematic subject for me is the bookmarks creation. I know that they are not a problem if I’m doing DOC to PDF conversion. Then I’m able to decide what header should be used as a curtain level of bookmarks and everything is working great at the end. However - with direct HTML to PDF conversion - I really don’t know how to generate bookmarks that are based on the source of the input document. Is there any way to make fully working 2 level bookmark tree in this case? Here’s an example of the structure we want at the end:
header1
header2
header2
header1
header1
header2
Could you please help me in finding the solutions? Just like I’ve mentioned - we can modify input HTML in any way, but in the end we would like to achieve our goals as quickly as possible.
Please excuse my English.
I am looking forward to your response,
LucasFrankly - we would like to avoid using Word. We are using it currently but there are long-term plans of improving whole conversion process, eliminate any mid-steps and automate as much as possible even though conversion is not going to be done unattended on a server. Thank you for your response, but I hope that maybe someone else would have any idea?
-
Problem with the date conversion
Hi Friends,
i am facing the problem with the date conversion, Actuall my requirement is to pass the date to the screen based on the user setting roles(SU01).
I have fetched the user setting date format by using the funciton module SUSR_GET_USER_DEFAULTS, The function module picks the exact user date setting (Like as MM/DD/YYYY, MM.DD.YYYY, DD.MM.YY).
After that i have implemented the FORMAT_DATE_4_OUTPUT funciton module for converting of the user role setting date format into system date format.
for the english language case the funciton module FORMAT_DATE_4_OUTPUT works fine but the funciton module not supported for other languages
Can you please provide the Function Moudle for user setting date conversion.
The funciton module is most important for us,
Thanks
Charan
Moderator message: date conversion questions = FAQ, please search before posting.
Edited by: Thomas Zloch on Dec 21, 2010 2:19 PMHope this logic helps you.
DATA LF_DATE TYPE DATS VALUE '21122010'. " 21-dec-2010
DATA LF_DATE_BI(10).
WRITE LF_DATE TO LF_DATE_BI. "Now LF_DATE_BI contains the date in user format
"Now populate the value LF_DATE_BI to the screen field -
Problem with Color conversion ADM_Color to AI_Color
Hello friends,
I think this is going to be the first post in this "Illustrator SDK Forum".
I am having problem with 'Setting Art Work Colors'.
I am trying to get the color value from the user through a ADM dialogue window, using the function
sADMBasic->ChooseColor();
The function is returning color in
ADMRGBColor structure, whose members (
red, green, blue) are of the type
'short'.
Now, I want to print a rectangular box art filled with that 'user selected color'.
But the color I have with me is in the
ADMRGBColor(each member of type 'short') and to draw that on a illustrator file, I need the type
'AIThreeColrStyle'(each member is of the type AIReal).
I had no idea how to convert
ADMRGBColor to
AIThreeColorStyle, but after lots of 'trial and errors', I arrived at this 'crude' solution.
ADMRGBColor value was in the range
0-65535 and
AIThreeColorStyle was in the range
0-1
aiPathStyle.fill.color.c.rgb.red = ((float)admColor.red)/65535;
This conversion was working fine on Windows, but on Mac its giving weird results. Can some one tell me the proper solution for this conversion problem?
Thanking you,
Vijoy~
And thank you Adobe for givig us this "Illustrator SDK Forum".
Forums Operations "Why there is no SDK forum for Illustrator?" 12/13/04 4:21pmThe code above seems to work for me. I get the proper values in the rgb fields of the AIPathStyle struct. Are you sure you are filling in the remaining values in the struct (like fillPaint, overprint, etc.) with appropriate values?
Hope that helps,
-Frank
Maybe you are looking for
-
Safari Search Bar is S-L-O-W in Yosemite.
I have a MacBook Pro that I bought in August 2013. Last week I updated the OS to Yosemite. I completed the updates. My internet provider is XFinity and I have 65 mpbs speed which I have confirmed with speediest.net as operating properly. My Wifi a
-
Which fields of material maintain in make to order scenario through bdc
HELLO !!!!! GURUS !!! I am working on make to order scenario. Here is batch management. I am giving data for uploading so for that which fields must be filled from basic data to costing . Could you give me some ref. on this topic. Regards, Nitin
-
How do I add track marks to a continuous mix?
I purchased an album from iTunes that contains one track that is a continuous mix of music for over an hour. How do I add track marks to the mix when burning it to a cd? I would like to seperate it into smaller pieces while still preserving the conti
-
Backend POs based on product category
Hello all, SRM 4.0, R/3 4.7, classic scenario inquiry if it is possible somehow to create from single shopping cart several backend POs based on product category. We have one SC with several product categories, would like to have several backend POs
-
HT201328 If I update my phone will I lose my unlock, or if I reset my phone?
If I update my phone or reset it, will I lose my unlock for it?