Getting incorrect values for linkQueryResult (ILinkManager) while debugging our plugin in Adobe InDesign CC debug
Hi,
We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
if(document == nil)
//CAlert::InformationAlert("Doc Interface Not Created");
break;
IDataBase *db = ::GetDataBase(document);
InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
if(linkmanager == nil)
//CAlert::InformationAlert("linkmanager Interface Not Created");
break;
LinkQuery Query;
ILinkManager::QueryResult linkQueryResult;
linkmanager -> QueryLinks(Query, linkQueryResult);
for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
if ( iLink )
InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
ILinkResource::ResourceState rs = resource->GetState();
PMString fileName = resource -> GetLongName(kTrue); //gets full path
CharCounter lc=fileName.LastIndexOfCharacter('.');
PMString *exten = fileName.Substring(lc+1,3);
if((*exten).Compare(kFalse,"xml")==0)
xmlDataLinkName = fileName;
Kindly help us if anyone has idea regarding this issue.
Thanks,
VIMALA L
Hi Vimala L,
try to replace
ILinkManager::QueryResult linkQueryResult;
by
UIDList linkQueryResult(db);
Markus
Similar Messages
-
Getting error while opening our plugin in InDesign CC debugger
Hi,
I am getting below error while opening our plugin in Adobe InDesign CC Debugger. Kindly help me to fix this issue.
NodeID_rv::fNodeID should be nil, NodeID_rv should only be used as a return value, and it should always Relinquish() it's NodeIDClass*. Otherwise we'll leak
Thanks,
Vimala LHi Vimala L,
you probably use the type NodeID_rv as a type of a local variable. If so, replace it by the type NodeID.
Or you have derived your own class from class NodeID. In this case be careful and use NodeID and NodeID_rv in the same way as InDesign does.
Markus -
Java returning incorrect values for width and height of a Tiff image
I have some TIFF images (sorry, I cannot post them b/c of there confidential nature) that are returning the incorrect values for the width and height. I am using Image.getWidth(null) and have tried the relevant methods from BufferedImage. When I open the same files in external viewers (Irfanview, MS Office Document Imaging) they look fine and report the "correct" dimensions. When I re-save the files, my code works fine. Obviously, there is something wrong with the files, but why would the Java code fail and not the external viewers? Is there some way I can detect file problems?
Here is the code, the relevant section is in the print() routine.
* ImagePrinter.java
* Created on Feb 27, 2008
* Created by tso1207
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.print.PageFormat;
import java.awt.print.PrinterException;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.stream.FileImageInputStream;
import javax.imageio.stream.ImageInputStream;
import com.shelter.io.FileTypeIdentifier;
public class ImagePrinter extends FilePrintable
private final ImageReader _reader;
private final int _pageCount;
private final boolean _isTiff;
//for speed we will hold current page info in memory
private Image _image = null;
private int _imgWidth = 0;
private int _imgHeight = 0;
private int _currentPage = -1;
public ImagePrinter(File imageFile) throws IOException
super(imageFile);
ImageInputStream fis = new FileImageInputStream(getFile());
Iterator readerIter = ImageIO.getImageReaders(fis);
ImageReader reader = null;
while (readerIter.hasNext())
reader = (ImageReader) readerIter.next();
reader.setInput(fis);
_reader = reader;
int pageCount = 1;
String mimeType = FileTypeIdentifier.getMimeType(imageFile, true);
if (mimeType.equalsIgnoreCase("image/tiff"))
_isTiff = true;
pageCount = reader.getNumImages(true);
else
_isTiff = false;
_pageCount = pageCount;
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
throws java.awt.print.PrinterException
int drawX = 0, drawY = 0;
double scaleRatio = 1;
if (getCurrentPage() != (pageIndex - getPageOffset()))
try
setCurrentPage(pageIndex - getPageOffset());
setImage(_reader.read(getCurrentPage()));
setImgWidth(getImage().getWidth(null));
setImgHeight(getImage().getHeight(null));
catch (IndexOutOfBoundsException e)
return NO_SUCH_PAGE;
catch (IOException e)
throw new PrinterException(e.getLocalizedMessage());
if (!_isTiff && getImgWidth() > getImgHeight())
pf.setOrientation(PageFormat.LANDSCAPE);
else
pf.setOrientation(PageFormat.PORTRAIT);
Graphics2D g2 = (Graphics2D) g;
g2.translate(pf.getImageableX(), pf.getImageableY());
g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
scaleRatio =
(double) ((getImgWidth() > getImgHeight())
? (pf.getImageableWidth() / getImgWidth())
: (pf.getImageableHeight() / getImgHeight()));
//check the scale ratio to make sure that we will not write something off the page
if ((getImgWidth() * scaleRatio) > pf.getImageableWidth())
scaleRatio = (pf.getImageableWidth() / getImgWidth());
else if ((getImgHeight() * scaleRatio) > pf.getImageableHeight())
scaleRatio = (pf.getImageableHeight() / getImgHeight());
int drawWidth = getImgWidth();
int drawHeight = getImgHeight();
//center image
if (scaleRatio < 1)
drawX = (int) ((pf.getImageableWidth() - (getImgWidth() * scaleRatio)) / 2);
drawY = (int) ((pf.getImageableHeight() - (getImgHeight() * scaleRatio)) / 2);
drawWidth = (int) (getImgWidth() * scaleRatio);
drawHeight = (int) (getImgHeight() * scaleRatio);
else
drawX = (int) (pf.getImageableWidth() - getImgWidth()) / 2;
drawY = (int) (pf.getImageableHeight() - getImgHeight()) / 2;
g2.drawImage(getImage(), drawX, drawY, drawWidth, drawHeight, null);
g2.dispose();
return PAGE_EXISTS;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since version XXX
* @return
public int getPageCount()
return _pageCount;
public void destroy()
setImage(null);
try
_reader.reset();
_reader.dispose();
catch (Exception e)
System.gc();
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @return
public Image getImage()
return _image;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @return
public int getImgHeight()
return _imgHeight;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @return
public int getImgWidth()
return _imgWidth;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @param image
public void setImage(Image image)
_image = image;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @param i
public void setImgHeight(int i)
_imgHeight = i;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @param i
public void setImgWidth(int i)
_imgWidth = i;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @return
public int getCurrentPage()
return _currentPage;
* <br><br>
* Created By: TSO1207 - John Loyd
* @since Mar 25, 2008
* @param i
public void setCurrentPage(int i)
_currentPage = i;
}Edited by: jloyd01 on Jul 3, 2008 8:26 AMFigured it out. The files have a different vertical and horizontal resolutions. In this case the horizontal resolution is 200 DPI and the vertical is 100 DPI. The imgage width and height values are based on those resolution values. I wrote a section of code to take care of the problem (at least for TIFF 6.0)
private void setPageSize(int pageNum) throws IOException
IIOMetadata imageMetadata = _reader.getImageMetadata(pageNum);
//Get the IFD (Image File Directory) which is the root of all the tags
//for this image. From here we can get all the tags in the image.
TIFFDirectory ifd = TIFFDirectory.createFromMetadata(imageMetadata);
double xPixles = ifd.getTIFFField(256).getAsDouble(0);
double yPixles = ifd.getTIFFField(257).getAsDouble(0);
double xRes = ifd.getTIFFField(282).getAsDouble(0);
double yres = ifd.getTIFFField(283).getAsDouble(0);
int resUnits = ifd.getTIFFField(296).getAsInt(0);
double imageWidth = xPixles / xRes;
double imageHeight = yPixles / yres;
//if units are in CM convert ot inches
if (resUnits == 3)
imageWidth = imageWidth * 0.3937;
imageHeight = imageHeight * 0.3937;
//convert to pixles in 72 DPI
imageWidth = imageWidth * 72;
imageHeight = imageHeight * 72;
setImgWidth((int) Math.round(imageWidth));
setImgHeight((int) Math.round(imageHeight));
setImgAspectRatio(imageWidth / imageHeight);
} -
Problem to get Correct Value for Message Id in XI (Inbound channel)
Hi Experts
I have XI scenario i.e. SOAP to RFC.
I am calling RFC and getting Response which contais Messageid Field(Raw Data).
But while getting Response in Inbound Channel ,I ma getting Junk Value For Message Id.
In RFC Data element for Message id is SXMSMGUID.(data tpe Raw No Of character 16 and Output Length 32)
I am accessing some RFC functions from XI which return parameters in the RAW format.[RAW: Uninterpreted byte string.]
For example: If I execute a RFC from the abap system (using transaction se37), one of the results is "5ECD6F4D6C6E3242921025FE74AC5153"
When I call the RFC from XI, response for same parameters is "Xs1vTWxuMkKSECX+dKxRUw==".
Is there any way to get RAW data in correct Format?
when i import RFc in XI it's data type becomes xsd:base64Binary.
I created one customized data element having data type RAW (32 length) and even Character(32-50 length)
In this case RFC gives correct value but when Sceanaro runs in XI,it get Wrong data in XI Inbound channel.
Also disturbed value and place of other Fields.
Thanks in advance .Hi
Check this forum post.. same prob as yours
Re: Problem in RFC Lookup UDF in getting MessageID
fixed by changing the datatype other than RAW in FM
also,
Data type RAW imported to ABAP from Java
Regards
Vishnu -
How To get Characteristic values for an Equipment in a particular Class ?
Hi All,
How i will get Characteristic values for an Equipment in a particular Class ?
Any table or FM ?
Thanks in advance
Srikanta GopeHi,
You can use the FM BAPI_OBJCL_GETDETAIL to fetch the characteristic values for an equipment from the table parameters ALLOCVALUESNUM; ALLOCVALUESCHAR; ALLOCVALUESCURR.
Or u can use the tables EQUI, KLAH, KSSK, AUSP, CABN
Regards,
Aditya -
How can I get null values for the later weeks
Hi All,
When I execute this code I get the records till current week.
How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
Thanks,
Vikram
DECLARE
v_query VARCHAR2(4000);
TYPE ref_cursor IS REF CURSOR;
v_refcur ref_cursor;
v_sum NUMBER;
v_id NUMBER;
v_name VARCHAR2(1000);
v_weeknum NUMBER;
v_pernum NUMBER;
v_numOfWeeks NUMBER := 5;
BEGIN
v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
FROM s_postn) postn_tbl
WHERE lvl_6_id = 5767
AND fiscal_year = 2008
AND b.week_num < 4
AND b.period_num = 3
AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
ORDER BY postn_tbl.postn_name, b.week_num';
OPEN v_refcur FOR v_query;
LOOP
FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
EXIT WHEN v_refcur%notfound;
dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
END LOOP;
END;
This is the output when I execute this code.
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W2 COMM CNTRL TAM 216 12561.4
P3W3 COMM CNTRL TAM 216 2027.1
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
This is the output I'd like to get
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W4 COMM CNTRL ISAM 213
P3W5 COMM CNTRL ISAM 213
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W4 COMM CNTRL ISAM 273
P3W5 COMM CNTRL ISAM 273
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W4 COMM CNTRL TAM 213
P3W5 COMM CNTRL TAM 213
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W4 COMM CNTRL TAM 273
P3W5 COMM CNTRL TAM 273
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
P3W4 Damon Walters
P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PMSure, in a Single SQL ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>-- Start Of Test Data --
satyaki>with week_tab
2 as
3 (
4 select 1 period_num, 1 week_num, 10 bkg1 from dual
5 union all
6 select 1, 2, 40 from dual
7 union all
8 select 1, 3, 30 from dual
9 union all
10 select 1, 2, 20 from dual
11 union all
12 select 1, 1, 10 from dual
13 union all
14 select 1, 1, 20 from dual
15 union all
16 select 1, 3, 10 from dual
17 union all
18 select 2, 1, 15 from dual
19 union all
20 select 2, 2, 20 from dual
21 union all
22 select 2, 3, 10 from dual
23 union all
24 select 2, 1, 15 from dual
25 union all
26 select 2, 2, 30 from dual
27 union all
28 select 2, 3, 20 from dual
29 )
30 -- End Of Test Data --
31 select period_num,
32 week_num,
33 (
34 select sum(week_tab.bkg1)
35 from week_tab
36 where period_num = m.period_num
37 and week_num = m.week_num
38 group by week_num, period_num
39 ) sum_bkg1
40 from (
41 select dum.week_num,
42 wk.period_num
43 from (
44 select 1 week_num from dual
45 union all
46 select 2 from dual
47 union all
48 select 3 from dual
49 union all
50 select 4 from dual
51 union all
52 select 5 from dual
53 ) dum ,
54 (
55 select distinct period_num
56 from week_tab
57 ) wk
58 ) m;
PERIOD_NUM WEEK_NUM SUM_BKG1
1 1 40
1 2 60
1 3 40
1 4
1 5
2 1 30
2 2 50
2 3 30
2 4
2 5
10 rows selected.
Elapsed: 00:00:00.48
satyaki>Regards.
Satyaki De. -
Get unique value for a range of values from a table
Please help to identify the sql to get unique value for following scenario
Table A has 3 columns
column1 column2 column3user7666373 wrote:
Please help to identify the sql to get unique value for following scenarioUnique combinations of three columns? If so:
select DISTINCT column1,column2,column3 from A;SY. -
How to get the values for checked and unchecked chekboxes
Hai i have using the checkbox in for loop.
I need the urgent help from anyone,
for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and unchecked checkboxes. Because if i checked the checkboxes, those values need to be inserted into the database. Those for unchecked checkboxes values need to be deleted from the database. Can anyone help me for this
i am using the following jsp code for this. If anyone can know about this please post me the sample code.
<form name="confirmcontainer" id="confirmcontainer" method="post" action="submit.jsp">
<% for(int i=0;i<value.length;i++) {%>
<tr>
<td><input name="assigncontainer_chkbox" d="assigncontainer _chkbox" type="checkbox" value="<%=value[0]%>"></td>
<td class="bottomborder"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[1]%> </font></div></td>
<td bgcolor="#FFFFFF" class="bottomborder"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[2]%></font></td>
</tr>
<% } %>
<tr><td><input type="submit" name="submit" value="submit"> </td></tr>
</form>
Thanks & Regards,
TamilvananHey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
How to get the values for the Authorization Object Fields....
Hi Everyone,
I'm pretty new to the SAP Security and have been working on the Basis sides...I created a new role in PFCG and added a few transactions (ME13) and clicked on the Authorizations tab. In there, the authorization tree is in yellow and red. After providing the Org Values, only the yellow lights remain (apart from the green one ofcourse). Now how do we get the values for the different auth obj fields that are in yellow... say for example
Conditions COND
Maintain Condition: Auth. for Use/Appl./Cond.Type/Table V_KOND_VEA
Activity 03 ACTVT
Application KAPPL
Condition table KOTABNR
Condition Type KSCHL
Usage of the condition table KVEWE
Here the values for V_KOND_VEA fields e.g. KAPPL, KOTABNR etc are missing.
My question is how do we get these values in regard to the requirement provided by the client...is it the functional guys who provide these values or else how is a security person supposed to know it...
All the help in this regard is sincerely appreciated along with the awarding of points...Hey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
A^b = n ,How to get the value for a ?
a^b = n ===> n = Math.pow(a,b)
How to get the value for a ?
dose Java have API to get the value for a ?
Thanks for help~~~a^b = n
=>
a = n^(1/b)
So,
a = Math.pow(n,1.0/b) -
How to get the value for the LIT_Withheld field in the city tax form?
I am trying to get the value for the LIT_Withheld field on the city tax form , PAYUSEET.. This is not a database column but is generated based on some conditions.. Appreciate the help. Thanks, Suguna
Hi Abhmanyu,
Thanks for your response.
Search Help Name : ZZ_MG_MARITAL_VH
Selection Method : T502T
Search help parameters are SPRSL, FAMST, FTEXT,
Can u provide me a sample code to fetch the value of corresponding text.
Thanks,
Hari -
I have one report that lists a set of rows and has a link to
drill down to another report. On the second report, I am trying
to create a link to a form and pass the value received from the
first report. I am trying to use the API
wwpro_api_parameters.get_value but I cannot figure out how to
get the value for the second parameter - p_reference_path.
Here is my code which is found in the "Additional PL/SQL Code"
section, "After displaying the Header".
declare v_id varchar2(10);
begin
v_id := wwpro_api_parameters.get_value
('id', 'a');
htp.anchor ('http://rrlehman-
lap.us.oracle.com/pls/portal30/PORTAL30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1516531942&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=FRM_ID&p_arg_values=' ||
v_id, 'Create A Topic', NULL, NULL);
end;
No matter what I put in for the second variable,
p_preference_path, I do not get a value for v_id. I have
performed a search in the discussion forums and read all related
threads but I still cannot get it to work.Please, note that the second parameter of the get_value function is the identifier of the portlet instance, called in the PDK as reference path.
Here you find further information on the topic:
[list]
[*]Documentation of the wwpro_api_provider.get_value function
[*]Guidelines for Parameter Passing in Portlets
[list] -
TSQL Get Previous values for each group by
Dear Friends,
I have a problem with my TSQL statment.
I need to get previous value for each day and specific unit. Everything goes fine if I have always 2 unit in each day. But if same day has just one unit or less, I cannot have the previous value in the current record.
The Output is this one:
SK_DAY SK_UNIT
VALUE VALUE_PREVIUS_DAY
20131112 2
30.00 NULL
20131112 3
34.00 NULL
20131113 2
40.00 30.00
20131113 3
45.00 34.00
20131114 2
50.00 40.00
I dont have the second record for 2013-11-14, because in this date I just have value for unit 2.
The final output should include the record:
20131114 3
0 45.00
The Statment I have is:
SELECT MAIN.SK_DAY, MAIN.SK_UNIT, SUM(MAIN.VALUE) AS VALUE
SELECT SUM(VND1.VALUE) AS VALUE
FROM FCT_TEST VND1
WHERE CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))>=DATEADD(dd,-1,CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY)))
AND CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))<CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY))
AND VND1.SK_UNIT=MAIN.SK_UNIT
) AS VALUE_PREVIUS_DAY
FROM FCT_TEST MAIN
GROUP BY SK_DAY, MAIN.SK_UNIT
SQL CREATE SCRIPT:
CREATE TABLE [dbo].[FCT_TEST](
[SK_DAY] [int] NOT NULL,
[SK_UNIT] [int] NOT NULL,
[VALUE] [decimal](18, 2) NULL,
CONSTRAINT [PK_FCT_TEST] PRIMARY KEY CLUSTERED
[SK_DAY] ASC,
[SK_UNIT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Thank you!!!
PPSQLThank you Kalman,
But my problem is not with date! Fortunately I have dates for all days.
The problem is for dimension tables like UNITS that I dont have values for all days, and when I try to get the previous value for previous day and each unit I dont have records.
20131112
2
30.00
NULL
20131112
3
34.00
NULL
20131113
2
40.00
30.00
20131113
3
45.00
34.00
20131114
2
50.00
40.00
20131114
3
0
45.00 [I NEED THIS RECORD AS IS]
Could you help me??
Thank you!! -
Getting MIX values for Keyfigures in Report
Hi
Iam Getting MIX values for Keyfigures in Report, May i know why it is coming, In which cases this MIX values are coming
Regards
ramuHi Ramu,
By MIX values, do you mean you are getting a * in the resultant row, and when you drill down by a certain characteristic you get multiple values of different units ? Please do give more details so that the forum can help you better.
Regards
Snehith -
Adobe InDesign CS4 Debug WIN Installation
I need to port an InDesign CS3 plugin to InDesign CS4. In order to do that I've installed the Adobe InDesign CS4 Debug WIN but when I'm trying to start the application I receive the following error message in German: "Diese Anwendung konnte nicht gestartet werden, weil die Anwendungskonfiguration nicht korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren.". In english this should mean something like "This application has failed to start because the application configuration is incorrect. Try to reinstall the application.".
The box I've tried installing on has visual studio C++ 2005 SP1 and InDesign CS3 Debug already installed (which works fine). I've looked through the requirements in the "InDesign® CS4 Read Me" and couldn't find anything that I'm missing.
Any ideas?
Thanks in advance.Hi Folks,
ID CS4 Debug and ID CS3 Debug can be installed on the same system. The likely reason that the CS4 version is giving that error is because the CS4 version needs some Visual Studio 2005 SP1 DLLs that aren't installed on the computer.
I believe that there are a couple of ways to fix this. One is to install Visual Studio 2005 SP1 (the recommended setup for CS4 plug-in development). When you install SP1 the DLLs needed by ID CS4 Debug will be installed. The other way, I think, is to not SP1, but install the release version of ID CS4 on your system. I understand that the ID CS4 Release version installer will install the DLLs needed by the debug version.
However, if you use VS2005 (no SP1 installed) for CS4 plug-in development you will not be using the recommended development environment for CS4. But if you install SP1, and you want to develop plug-ins for CS3, you will not be using the recommended development environment for CS3 plug-in development. Go figure.
Please note that once you install VS2005 SP1, any plug-ins that you compile will be looking for the SP1 version of the C/C++ Runtime DLLs when the plug-in is launched. The needed DLLs will be on your development system, so everything will seem fine when you test your CS3 plug-ins on your development computer. But when the plug-in is launched on a machine without the SP1 DLLs installed, the plug-in will not run.
I'm not sure of the best way to deal with this (I'm mainly a Mac guy), but there was a thread here entitled
Visual Studio 2005 SP1 about this issue a while back. This thread was partially deleted due to a forum software problem, and one of the ideas that was mentioned was lost from the message thread. Below are the useful (IMHO) missing messages (sent to me by Dirk Becker), who follows the forum using email.
[Ugh! I told Dirk I would write up a Wiki entry for this, but work happened and I haven't gotten to this yet. :-( ]
=========
MISSING MESSAGES FROM THE THREAD: "[IDCS3 WIN] Visual Studio 2005 SP1"
=========
FROM: Eugenio Andres
Hi Jim,
From your original error message, the problem is most likely with the installation of the C/C++ SP1 runtime DLL on the machine that does not have the compiler. It's not so simple nowadays as copying over the DLLs, because Microsoft invented the side-by-side system, that allows having several versions of the same file on one machine.
Your options are installing the runtime on each machine (a package for that is available from Microsoft Download) or changing your project to the static runtime ("Multithreaded" instead of "Multithreaded DLL"). I always use static linking in plugins with no problems, although Adobe specifies dynamic in their instructions, but you avoid these "DLL hell" problems.
Regards,
Eugenio Andres - www.ExpertosInformaticos.com
=====
=====
FROM: Jim Birkenseer
Hi Eugenio,
Thanks for the information.
So, are you saying that I simply have to go into my Plug-In's property page in VS2005 SP1 and change the C/C++ Code Generation from Multi-threaded DLL (/MD) to Multi-threaded (/MT) and rebuild the project? What are the downsides of doing this--or are there any?
<...SNIP...>
-- Jim
=========
=========
FROM: Eugenio Andres
Hi Jim,
You're welcome.
Yes, that project change should do it. The difference is that with the "DLL" version, your plugin loads the C/C++ runtime shared library (DLL) at runtime and calls it for any needed functions (like strcpy, malloc, etc.). Without the "DLL", the linker puts the C/C++ runtime code directly into your plugin and you don't need the C/C++ runtime SP1 DLL (the error you're getting is because your plugin required the DLL and it's not found on that machine).
The C++ SP1 runtime shared library is different from the C++ non-SP1 library InDesign uses. In this new Windows "side-by-side" scheme, both can live together.
If you use the exact same C/C++ runtime that Adobe uses, then that library is physically shared and it allows to do some "risky" things as e.g. allocating memory in one module (e.g. InDesign) and freeing it in another (e.g. your plugin). But this is usually not recommended and I don't think Adobe is doing it (but then it's only my impression from the code structure).
Anyhow, from the moment you use the SP1 compiler, you're not sharing the runtime any more with InDesign, so it doesn't matter if you compile "MultiThreaded" instead of "MultiThreaded DLL". The difference between these is the size of the plugin and the easyness of distribution, and without DLL you miss possible "automatic" updates of the C++ runtime DLL (because the C/C++ runtime code is embedded in your plugin), but lately new versions of the C/C++ runtime become "different" DLLs, as you can see, so that's not so relevant any more - or if it's critical, you can always recompile your plugin and redistribute if needed.
You can find a brief description of SP1 in
http://msdn2.microsoft.com/en-us/vstudio/aa718695.aspx
It looks like minor non-breaking changes to me, but one never knows...
Cheers,
Eugenio Andres - www.ExpertosInformaticos.com
Maybe you are looking for
-
Printer start-up problem. HP Deskjet 2050 All-in-One J510 series. Part# CH350A
Whenever I first turn on printer it immediately prints a page and says I need to scan the page and realign it. Also, the colors are somewhat faded looking. This question was solved. View Solution.
-
Hi all, How should I start. Will try to keep it short and to the point: I was in US in Nov 2014 for work In Nov 2014, I have purchased on online Apple Store US in first instance an Iphone 6 64GB (model: A1549) with T-mobile carrier (unlocked version)
-
Searching operation functions differently
I have a strange problem. I created an entity bean with bean managed persistence to work with LDAP. When I perform a search as in dirContext.dirContext.search("o=seagate.com", "uid=pwilson", new SearchControls()) ; and the uid is present in LDAP I do
-
How to change group color in ical
-
Planning at subassembly level in SAP B1
Dear experts, Can you please advise if SAP Business one would support the MRP model in which the forecast is planned at a sub assembly level. The Finished good level has multiple variants based on Customer requirements. There are set of Raw parts w