Convert inches to centimeters

Hi,
I'm trying to convert inches to centimeter on the fly, but
nothing seems to work.
<div spry:detailregion="products">{products::height} x
{products::width} x {products::depth} in</div> works fine
but:
<div
spry:detailregion="products">{function::convertMetric}
cm</div><script type="text/javascript">
function convertMetric(region, lookupFunc)
// Format the number in the price column so that it
// becomes a string that starts with a dollar sign,
// and ends with a number that has 2 digits after
// the decimal point.
return "$" +
parseInt(lookupFunc("{products::height}")).toFixed(2);
</script>
Copied right off the API site generates an error.
How is the supposed to work?
Thanks

Hi,
You still haven't mentioned what the error is that you are
getting. Also, look at your SpryData.js file that is deployed on
your testing site, at the top of the file is a comment that says
the version number of the file and the release it is from. What
does it say?
By error, did you mean that you are getting a zero from your
alert? Or are you getting an actual error message in the browser?
The data in a data set will persist, after you load it, until
you either load new data or destroy the data set.
The data set loads its data asynchronously, and only after
you call the loadData() function on it ... if a data set is bound
to a region or detail region on the page, loadData() is
automatically called for you at the time the regions are identified
and processed on the page.
So depending on when you called you getRowCount() and
alert(), there may have been no data loaded yet.
If I understand you correctly, you are simply trying to fill
in a detail region with the dimensions calculated dynamically:
var products = new Spry.Data.XMLDataSet(...);
products.setColumnType([ "width", "height", "depth"],
"number");
<div
spry:detailregion="products">{function::convertMetric}
cm</div>
<script type="text/javascript">
function convertMetric(rgn, lookupFunc)
return lookupFunc("{products::height}") * 2.54 + " x " +
lookupFunc("{products::width}") * 2.54 + " x " +
lookupFunc("{products::depth}") *2.54 + " cm" ;
</script>
You can see a working example of the {function::myFunc} here:
http://labs.adobe.com/technologies/spry/samples/data_region/Function_colon.html
but it only works in version of SpryData.js released with
Spry 1.6.1 and later. You can get the latest copy here:
http://labs.adobe.com/technologies/spry/includes/SpryData.js
If you are using an earlier version of SpryData.js, then you
either need to update to the latest, or use a custom column which
you can find a sample of here:
http://labs.adobe.com/technologies/spry/samples/data_region/CustomColumnsSample.html
--== Kin ==--

Similar Messages

  • Depth of field displayed in inches or centimeters

    I wish the depth of field would be displayed in inches or centimeters (for those using the metric system) instead of f1.2, f2.8, etc. I wish it would show it like this: f1.2 (2 inches) or something along these lines.
    I understand depth of field is not a fixed value. The depth of field changes based on the distance to the subject, aperture and focal length. I'd like to see the camera body doing these calculations in real time and displaying them somewhere in the viewfinder. I'd assume you could toggle it on or off in the menu for those who don't need this.
    Solved!
    Go to Solution.

    If you install Magic Lantern on your camera, it has all the depth of field information available for display on the rear LCD so it is possible.
    Here is a video I made that shows how the values change as you change focus distance or focal length.
    Mike Sowsun
    S110, SL1, 5D Mk III

  • DPI & PIXELS/ INCHES OR CENTIMETERS

    Hi guys , I am new to illustrator and photoshop I don't have the DPI on my Illustrator and photoshop I only have Pixels/inches and centimeters, How can I  have a good resolution equal to 300 DPI that is required for my project?

    It depends on what you mean by "Project".  The issue is resolution at your output size using a particular output device.  Get your hands on an excellent reference book titled: Adobe's Print Publishing Guide.  Output requirements, resolution, document raster setting, etc. are all covered and should be an easy read.  Get used to the proper terminology.  DPi = output resolution ( i.e., 5080 dpi ).  PPi = image resolution ( i.e., 300 ppi @ 100% final size ).  Adobe does a fairly decent job illustrating halftone screening and its relationship with "Shades of Gray" formulae.  This is difficult for the typical user to get their head around.  For instance, the Shades of Gray formula reads like this...
    Output Reolution  divided by  screen ruling > squared  + 1  = Shades of Gray ( 256 )
    Once you understand the background gymnastics going on in the formula, it becomes easier to understand what resolution will be required for your "Project".  Most inkjet printers output using 72 lines per inch stochastic screening.  So, most people assume that 144 ppi is only required for output at 100%.  There are many many variables involved.  There are also consumers who believe offset presses use 150 lies per inch ( referred to screen ruling above ) halftone screens and, therefore, require 300 ppi image resolution ( just multiply the halftone screening 2x ).  Another element is output resolution which, if you follow the formula, would need to be 5080 dpi in order to render ( output ) a 150 line screen.  Sorry to get so technical.  The main point is establishing final output size and to create an image resolution that is appropriate for a particular output scenario.  Each "Project" is different, but should be pre-established before the document is produced.  That means communicating with whoever is going to output the file before you design the "Project".
    So, let's say your "Project" is an 8.5x11" vertical flyer that needs a background image @ 8.75x11.25" vertical ( bleed size ).  You talked to the printer and they plan to use a 133lpi screen ruling based on a uncoated sheet.  Newr Illustrator applications only require you to set the output resolution in the Print dialogs and give you a selection of low - medium - high which is also the document's raster setting choices.  You know that the printer will need an image resolution of 266 ppi based on the lpi output screen ruling ( 133 x 2 = 266 ) at 100%. In brief, document raster res setting shoukld be "High" ( 300ppi ).  Note: output resolution is independent and you should not have to set it in Illustrator.  Many versions back, you could manually set it in the Document Setup dialogs.  May direct-to-plate imaging technologies wil assume a 5080 dpi output resolution at the print vendor's facilities.
    Class dismissed.

  • Convert inches to pixels [was: i am trying to build web pages for my friends...]

    I have a problem when i find a picture that i want to use when the picture size is displayed in inches. How do I convert those pictures to pixels size?
    [Subject line edited by moderator to indicate nature of question]

    Open your image in your graphics program.
    Whether you decide to resize or not, the program shoulf be able to display the dimensions in either metric.

  • Can you have code run in a terminal and applet?

    For example in my program in Main we enter the data for menu and amount of the exchange but the result is displayed in an applet.
    works great in the terminal window.
    but when using an applet it will not work.
    import java.awt.*;
    import java.applet.*;
    import javax.swing.* ;
    import TerminalIO.*;
    public class MetricConversionMain    {
             final static String CRLF = "\n" ;     
             static String msgOut ;                   
         public static void main ( String[] args )     {
            int valid  = 0;
            int choose = 0;
            double numUnits = 0.0; 
            double convertedUnits = 0.0;
                                  // title, class, author and version info  to
         KeyboardReader entries = new KeyboardReader(); //object for keyboard entry
         while (valid != 1) {
                // menu for conversion selection 1 thru 4          
         System.out.println("\n\t\t1 \tFor inches to centimeters");
          System.out.println("\t\t2 \tFor quarts to liters");
          System.out.println("\t\t3 \tFor pounds to kilograms");
          System.out.println("\t\t4 \tFor miles to Kilometer");
              choose = // GW corrected my code to the present prior I was choose = choose.readInt etc etc
            entries.readInt("\n\t\tPlease choose one of the following menu items to convert: ");
          if (choose == 1 || choose == 2 || choose == 3 || choose ==4 ) {
               valid = 1 ;
          else {
               System.out.println("Invalid Selection.") ;
          switch (choose) {
              case 1 : System.out.println("Converting inches to centimeters... ") ; break ;
              case 2 : System.out.println("Converting quarts to liters... ") ; break ;
              case 3 : System.out.println("Converting pounds to kilograms... ") ; break ;
              case 4 : System.out.println("Converting miles to kilometers... ") ; break ;
         } // Error checking, reiterates the user's current choice prior to next question
         System.out.println();
         KeyboardReader useEntry = new KeyboardReader(); //object for keyboard entry
              numUnits =
            useEntry.readDouble("\n\t\tNow please enter the amount you wish to convert: ");
              System.out.println ("\t\tThe conversion comes to  " + numUnits);
         //KeyEntry equal = new KeyEntry();   
         //equal.setNumUnits
        //(useEntry.readDouble("\n\t\tNow please enter the amount you wish to convert: "));
         //System.out.println("\t\tThe conversion comes to  " + getnumUnits());
         switch (choose) {
              case 1 : Inch fromInch = new Inch(numUnits); break ;}
         case 2 : Quart fromQuart = new Quart(numUnits) ; break ;
              /*     case 3 : Pound fromPound = new Pound( numUnits) ; break ;
              case 4 : Mile fromMile = new Mile(numUnits) ; break ;
         } // Switch statement that performs the correct conversion based on the user's input*/
                   // Instantiate US Standard Objects
         /*     Inch fromInch = new Inch(1) ;
              Foot fromFoot = new Foot(1) ;
              Yard fromYard = new Yard(1) ;
              Mile fromMile = new Mile(1) ;
              Ounce fromOunce = new Ounce(1) ;
              Quart fromQuart = new Quart(1) ;
              Gallon fromGallon = new Gallon(1) ;
              Pound fromPound = new Pound(1) ;
              // Instantiate Metric Objects          
              Centimeter fromCentimeter = new Centimeter(1) ;
              Meter fromMeter = new Meter(1) ;
              Kilometer fromKilometer = new Kilometer(1) ;
              Gram fromGram = new Gram(1) ;
              Liter fromLiter = new Liter(1) ;
              Kilogram fromKilogram = new Kilogram(1) ;
              LitGal fromLitGal = new LitGal(1) ; */
         }     //  main
    }     //     class MetricConversionMainsupper classpublic class SuperConverter        {
         *     This class is the super class for a series of
         *     subclasses that perform conversion from metric to
         *     imperial or vice versa.
         protected double numUnits ;
         protected double convertedUnits ;
         protected double factor ;
         // Constructor
         public SuperConverter ( double argNumUnits, double argFactor )  {     
         numUnits = argNumUnits ;
         factor = argFactor ;
         convertedUnits = numUnits * factor ; //convert() ;
         }     // Constructor
         protected double getnumUnits()     {
              return numUnits ;
         protected void setnumUnits     ( double argNumUnits )     {
              numUnits = argNumUnits ;
         protected double convert  () {
              this.convertedUnits = numUnits * factor ;     
              return convertedUnits ;     
         public double getconvertedUnits()     {
              this.convertedUnits = convert() ;
              return convertedUnits ;
    }     //  end SuperConverter Classsubclass that works[public class Inch extends SuperConverter {
         public Inch      (double argNumUnits)
              super ( argNumUnits, 0.914 ) ;
              System.out.print   ("     ") ;
         if (argNumUnits > 1)
                   System.out.println(argNumUnits + " inches = " + convertedUnits + " centimeters") ;
              else
                   System.out.println(argNumUnits + " inch = " + convertedUnits + " centimeters") ;
    /code]
    The code I want to use  with the applet is import java.awt.*;
    import java.applet.*;
    import javax.swing.* ;
    public class Inch extends SuperConverter {
         final static String CRLF = "\n" ;     
         static String msgOut ;          
         public Inch      (double argNumUnits)
              super ( argNumUnits, 2.54 ) ;
              System.out.print ("     ") ;
              if (argNumUnits > 1)
              {   msgOut = "     Metric Conversion Chart" + CRLF + CRLF;
              msgOut += "     US Standard to Metric" + CRLF ;
         msgOut += "     -------------------------------------------------" + " " + CRLF ;
                   msgOut = argNumUnits + " inches = " + convertedUnits + " centimeters" ;
              else
              {   msgOut = "     Metric Conversion Chart" + CRLF + CRLF;
              msgOut += "     US Standard to Metric" + CRLF ;
         msgOut += "     -------------------------------------------------" + " " + CRLF ;
                   msgOut += argNumUnits + " inch = " + convertedUnits + " centimeters" + CRLF + CRLF + CRLF ;
              }     JOptionPane.showMessageDialog ( null, msgOut ) ;          
    }

    The issue I have is the applet/window appears behind the terminal window. below is the code that is use for the window. I want to have the window appear infront of the terminal window.import java.awt.*;
    import java.applet.*;
    import javax.swing.* ;
    public class Pound extends SuperConverter {
        final static String CRLF = "\n" ;     
             static String msgOut ;     
         public Pound      (double argNumUnits)
              super ( argNumUnits, 0.454 ) ;     
              System.out.print   ("     ") ;     
              if (argNumUnits > 1)
              {   msgOut = "     Metric Conversion Chart" + CRLF + CRLF;             
                  msgOut +=  "     Metric to US Standard" + CRLF ;
                  msgOut +=  "     -------------------------------------------------" + "         " + CRLF ;
                   msgOut += argNumUnits + " pounds = " + convertedUnits + " kilograms" + CRLF + CRLF + CRLF ;
              else
              {   msgOut = "     Metric Conversion Chart" + CRLF + CRLF;
                  msgOut +=  "     Metric to US Standard" + CRLF ;
                  msgOut +=  "     -------------------------------------------------" + "         " + CRLF ;
                   msgOut += argNumUnits + " pound = " + convertedUnits + " kilograms" + CRLF + CRLF + CRLF ;
              }   JOptionPane.showMessageDialog ( null, msgOut ) ;
    }

  • After converting a Word DOC to PDF units on ruler change to points

    Everytime I convert a Word (Office 2003) document into PDF using Adobe Acrobat 7.1.0 the units on the ruler under the tool bars convert themselves from centimeters to points. So I have to change it back in Tools. It's no big deal, but I'd be most grateful to anyone with  an idea how this can be prevented.

    ktomica,
    The link Mike provides is to Adobe's "official" Acrobat updates location.
    Because you are in 7.1.0 you'd need to process each version 7 update past 7.1.0 in sequence.
    Do this sequence: 7.1.1 update the 7.1.2 then 7.1.3 then 7.1.4.
    Be well...

  • Converting Between Measurement Units

    If I want to convert inches to points, etc., do I have to manually do the conversion, or does InDesign scripting have some ready method (or at least constants) to do the work for me?
    I am essentially interested in converting all possible MesurementUnits to and from points, as point in the basic unit which InDesign uses internally.
    TIA
    mlavie

    Sorry - I should have been more specific. I am using ActionScript, which does not have the UnitValue class.
    What are the possible solutions for ActionScript?
    TIA,
    mlavie

  • Feature Request: Better dimensional meta data displayed

    Aside from every other problem with how Bridge lets the user display, sort and interact with meta data (aside from the actual metadata palette), it would be way more useful to have the Dimension meta data displayed under an image shown in 'real world' dimensions.
    For example: I'm looking at my 'final images' that have been converted to CMYK, and sized for delivery. At this point Pixel Dimensions are pretty useless. What I really want to do is quickly scan my images, seeing Inches (or CM) with a PPI. My clients never ask for pixel dimensions (unless we are talking about the web, which we aren't) - they ask for 8.76" x 5.34" at 266ppi. It would just be nice to use bridge to double check the image sizes before delivery.
    thks
    andy

    Thanks for you feedback. You wish has been granted (dimensions can now be displayed in pixels, inches or centimeters. Go to Preferences > Thumbnails to select which dimension to display below the thumbnail, or Preferences > Metadata to customize the metadata pane). Check out the free beta of Bridge CS3 (http://labs.adobe.com/technologies/photoshopcs3/)
    Cheers,
    Arno.
    Bridge Engineering Manager, Adobe.

  • Setting page size in INDD for crown quarto in p ( point?)

    hi- not sure this is a " problem" so much as a question.
    I am revising my project ( never " approved" final yet:).
    the book specs are for crown quarto- which I want. I need to convert the INDD-pdf into specs that match crown quarto.  I have the numbers 7.44x9.68 ( or 18.91cmx24.589 cm), etc.  HOWEVER.. when I went into the INDD file for page setup.. and custom page layout.  it is listed in/ as 36p0 and 54p0... not inches or centimeters.
    SOOOOO... what specs/numbers do I need to enter so that it fits a crown quarto layout?
    thanks
    Teri

    Quoting Peter Spier <[email protected]>:
    hi again,
    ( btw- those B masters do have dotted X's through the page. 
    placeholder thingy?).
    anyway- trying to figure out how to do what you are suggesting.. not 
    so much worried/ tentative.. as .. maybe I need the 101 on 
    placeholders first.. because I'm not sure I am following what you 
    described ( and you're clear.. that isn't the difficulty:) I think I 
    just have a gap in the knowledge base..
    and yeah- revert and undo are wonderful inventions:)
    is there a video/ demo on the placeholders somewhere?  btw- i'd be 
    more than happy to let someone look at the raw file to see what was 
    done.. ( not asking.. just not hoarding,either:) then someone might 
    know what to tell me to do, or how to do it.. if they could tell what 
    was already done/ how set:
    thanks so much- what a great learning adventure:)
    Teri
    I meant move the position, since presumably the size and shape is correct.
    Here's how placeholders work: When you place content into them on  
    the document page they remain linked to the master page for any  
    attribute you don't subsequently change on the live page. A typical  
    example would be a placeholder text frame on the master for a  
    headline (in this case it probably would have text in it that said  
    Put headline here, and you'd override it manually to change the  
    text, but the principle is the same).
    You change the headline on the live page, but do nothing else. Now,  
    if you go back to the master page and chnage the color or the font  
    size of the text in the palceholder, the color of or font size your  
    live headline will also change. If you move the headline frame on  
    the master page, the headline will move on the live page.
    If, however, you decided to change the font size from 14 pts to 18  
    pts onthe live page, but then changed it from 14 pts to 24 pts on  
    the master page, the one you changed on a live page would not be  
    affected by the size change.
    I sense you are nervous about trying this. You can't do any real  
    damage by trying. Save the document before you, and if it doesn't do 
    what you want you have both the undo command and the revert command 
    available.
    Peter
    >

  • Case Switch in subclass not working?

    I wrote a class and a subclass to convert an integer in feet and inches to centimeters and vice versa. I used a case switch in the subclass but when I run the program and type 1 for example it just goes to the next statement in the mian class and not whats in the switch. Sorry if this seems confusing. Here are the porgrams. First is the subclass.
      import java.util.*;
        public class Measure
          static Scanner console=new Scanner(System.in);
          public int feet;
          public int inch;
          public double cent;
          public int measure;
           public Measure()
             switch(measure)
                case 1:
                   System.out.println("Enter feet for conversion, if feet equals zero, type 0");
                   feet=console.nextInt();
                   if(feet<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   System.out.println("Enter inches for conversion, if inches equals zero, type 0");
                   inch=console.nextInt();
                   if(inch<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   break;
                case 2:
                   System.out.println("Enter centimeters for conversion");
                   if(cent<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   break;
                case 3:
                   System.out.println("GOODBYE");
                   break;
           public int getFeet()
             feet=12*inch;
             return feet;
           public int getInch()
             return inch;
           public double getCent()
             cent=inch*2.54;
             return cent;
           public void printMeasure()
       }Here is the main class
    import java.util.*;
        public class MeasurementMain extends Measure
          static Scanner console=new Scanner(System.in);
           public static void main(String[]args)
             int feet=0;
             int inch=0;
             double cent=0;
             int measure=0;
             System.out.println("***********************************");
             System.out.println("****                           ****");
             System.out.println("****  Measurement Conversion   ****");
             System.out.println("****                           ****");
             System.out.println("***********************************");
             while(measure!=3)
                System.out.println("Type 1 to enter a measurement in Feet and Inches, or 2 for centimeters");
                System.out.println("Type 3 to EXIT");
                measure=console.nextInt();
                if(measure==1)
                   System.out.println(""+feet+" feet and "+inch+" is equal to "+cent+"");
                if(measure==2)
                   System.out.println(""+cent+" centimeters are equal to "+feet+" feet and "+inch+" inches");
       }Thanks in advance.

    I moved my case switch to the main program but i can't get the conversion methods to work or print.
    Thanks in advance.The subclass is listed first.
      import java.util.*;
        public class Measure
          static Scanner console=new Scanner(System.in);
          public static final double CM_PER_INCH = 2.54;
          public static final double INCHES_PER_FOOT = 12;
          public double feet;
          public double inch;
          public double cent;
          public int measure;
           public Measure()
             System.out.println("***********************************");
             System.out.println("****                           ****");
             System.out.println("****  Measurement Conversion   ****");
             System.out.println("****                           ****");
             System.out.println("***********************************");  
           public void printMeasure()
           public double inchesToCentimeters(double inch)
             return cent=inch*2.54;
           public double feetToInches(double feet)
             return feet=inch*12;
           public double centimetersToInches(double cent)
             return cent=inch/2.54;
           public double inchesToFeet(double inch)
             return      feet = inch * 12;
       }Here is the main
        import java.util.*;
        public class MeasurementMain
          static Scanner console=new Scanner(System.in);
           public static void main(String[]args)
            int measure=0;
            int feet=0,inch=0;
            double cent=0;
             Measure m=new Measure();
             while(measure!=3)
                System.out.println("Type 1 to enter a measurement in Feet and Inches, or 2 for centimeters");
                m.printMeasure();
                System.out.println("Type 3 to EXIT");
                measure=console.nextInt();
                switch(measure)
                   case 1:
                      System.out.println("Enter feet for conversion, if feet equals zero, type 0");
                      feet=console.nextInt();
                      m.feetToInches(feet);
                      m.inchesToCentimeters(inch);
                      if(feet<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      System.out.println("Enter inches for conversion, if inches equals zero, type 0");
                      inch=console.nextInt();
                      m.inchesToCentimeters(inch);
                      m.printMeasure();
                      if(inch<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      break;
                   case 2:
                      System.out.println("Enter centimeters for conversion");
                      cent=console.nextInt();
                      m.centimetersToInches(cent);
                        m.inchesToFeet(inch);
                      if(cent<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      break;
                   case 3:
                      System.out.println("GOODBYE");
                      break;   
                if(measure==1)
                   System.out.println(""+feet+" feet and "+inch+" inches is equal to "+cent+" centimeters");
                if(measure==2)
                   System.out.println(""+cent+" centimeters are equal to "+feet+" feet and "+inch+" inches");
       }

  • Power shot s 100.

    i have black spaces on the sides of the viewing screen. how do i get rid of them?
    also, can i adjust the pictures i have already taken to delete them?

    Hi Psarver,
    It sounds like you just need to adjust the aspect ratio for your images.  The aspect ratio is the ratio of the width to the height of your images.  We measure it in pixels, but it works in inches and centimeters, too.  If you make prints, you want to select an aspect ratio comes closest matching the aspect ratio of the print you want.
    Here's how to adjust the aspect ratio in your camera:
    You can change the width to height ratio of an image.
    Aspect Ratio
    The same aspect ratio as HD TVs, used for displaying on wide-screen HD TVs.
    The same aspect ratio as 35mm film, used for printing out 5 x 7 in. or postcard sized images.
    The same aspect ratio as the screen of this camera, used for printing images on 3.5 x 5 in. to various A-sized papers.
    A square-shaped aspect ratio.
    An aspect ratio commonly used for portraits.
    * Only available on the PowerShot S100
    The aspect ratio for () and () images is fixed at ().
    The digital zoom and digital tele-converter are only available in the () aspect ratio since [Digital Zoom] is fixed to [Off] in all other ratios.
    You can also set the camera so that turning the <Control Ring> changes the aspect ratio.
    1. Press the <Power> button on the camera.
    2. Press the <FUNC./SET> () button.
    3. The following screen appears.
    Operate the <directional buttons> up or down to select [Still Image Aspect Ratio].
    Operate the <directional buttons> right or left to select an aspect ratio of your choice, then press the <FUNC./SET> () button.
    When the following shooting modes are selected, the aspect ratio cannot be changed, or limited aspect ratios are available.
    ... Cannot be set
    ... [4:3] or [16:9] can be selected
    ... Shooting mode is not available on this model
    Model Shooting Modes
    PowerShot S100
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Report design in points (pt)

    On our project we export SSRS reports to Excel.
    Report Definition Language (RDL) enables you to use several measurement units (for example, inches, pixels, centimeters, and points) to specify position and size values. However, Excel uses only points. Therefore, the SSRS Excel rendering
    extension converts the height and width of the table, the heights of the rows, and the widths of the columns to points. This process may include rounding some values. In this situation, the table height or width and the sum of the row heights or column widths
    are different. To compensate for the difference, the SSRS Excel rendering extension inserts a small row or column to the workbook.
    To prevent that ‘hidden’ row or column, we configure the table height and width to a value specified in "pt" (points) rather than "cm". 1 cm is about 28 points.
    Is it possible to configure SSRS to use points by default while designing a report?

    Hi HenriGroenevelt,
    I have tested on my local environment we can achieve this by adding the tag "<rd:ReportUnitType>Point</rd:ReportUnitType>" in the report.rdl file in the path like :"C:\Program
    Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject"
    For SSRS 2008, edit the Report.rdl template at:<Visual_Studio_Install_dir>\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject
    and add the following line before the closing </Report> tag:
    <rd:ReportUnitType>Point</rd:ReportUnitType>
    For more information please look on this URL
    http://stackoverflow.com/questions/1715282/make-sql-server-reporting-services-use-metric-measurements
    If you have any question please feel free to let me know.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • How to crop to a specific aspect ratio, then resize to specific size?

    HI,
       I need a running start, could someone please help me accomplish a specific task.
    1) I need to be able to restrict a crop tool to a specific aspect ratio, then resize the cropping tool as I like to make my selection.
    2) After, I need to resize the image to a set size... (so all my pictures wind up the same size.)
    After I would normally set my text the way I like it and add text to every picture (so it is the same size in all photos.) and save them.
      I do this in Paintshop with ease, but do not see the kind of controls on the cropping tool, or a place to resize an image other than the save.
    I just purchased Photoshop/Lightroom so I am in this with both feet, I could really use the help to get started in this because I need to work on this now or  or go back to Paintshop until I can figure it out when I get the time.
    Thanks,
    It is not easy to ask for help.
    Kevin

    OK, first a basic explanation: LR is not like Paintshop or Photoshop because it is a Raw converter and all Raw converters work non-destructively. This means that any edits that you set in the Develop panel are not actually carried out on the original image file, but rather only recorded for future reference. That future moment comes when you export (create and output) a new tif, psd or jpg file, send an image to Photoshop or some other secondary editor, or send the image to a printer.
    Now for the cropping: Select the crop tool in the tool bar under the Develop histogram. A drop-down menu offers a selection of the more common aspect ratios or you can set a custom ratio. Use the X key to toggle between landscape and portrait orientations. Set the crop box to the size and location you want by dragging the corners and close it. The crop is recorded in the catalog database file and this info will be used when you export the image. Because no actual cropping and/or resizing is done until export, the resizing instructions are on the Export dialog. This way the same crop configuration can be used with differently resized exports. Tick the Resize box and put in the pixel dimensions you want. Alternately, put in a size in inches or centimeters and a pixels per inch (ppi) resolution and LR will calculate the pixel dimensions. If you are resizing, I'd highly recommend also enabling Output Sharpening. It is interactive with the resizing and automatically does the optimum sharpening for the amount (and type) of resampling being done.
    If you want a number of images to be the same size, export them all together by, after editing and cropping them, selecting them all in the Library grid or the filmstrip and then running the Export dialog

  • Saving in 300 DPI?

    Hi there! Wondering if anyone has an answer to my frustrating question.
    I do commerical graphics for many clients, and I usually start off with a new canvas of 1200x1200 px in 300 DPI..however, when I export or save for web & devices, the resolution changes usually to 150 or sometimes even to 72 DPI wether I'm saving in JPEG or PNG. I need these graphics in 300 dpi..
    I'm guessing it has something to do with compression settings, but I'm just not sure. This is a very big problem for me. Any help is greatly appreciated.
    (I'm using CS4)
    TIA,
    ~Jess

    Jess,
    ...I usually start off with a new canvas of 1200x1200 px in 300 DPI...
    No, I'm sorry, but you don't. Not in Illustrator. This statement reveals the basic misunderstanding you are stumbling over.
    There is no "canvas" in Illustrator in the sense of a program like Photoshop, in which you open a "blank" document of a certain number of pixels, with each pixel just initially being white.
    There are no pixels when you create a new Illustrator document. There is just a literally empty document. No pixels, no nothing. It contains no pixels at all, even if you have the rulers set to its ridiculous selection of "pixels." (You'll know why this is ridiculous in a few minutes.)
    An Illustrator file contains objects, not pixels. Those objects can be of several different types. One type of object an Illustrator file can contain is a raster image, and raster images, of course, contain pixels. But until there is a raster image on the page, there are no pixels at all. And even when there is a raster image on the page, its scale (PPI) has absolutely nothing to do with the "pixels" of the page rulers.
    When you export an Illustrator file as a single raster image--using either the Export dialog or the Save For Web & Devices dialog--that's when you create pixels. In fact, if there are already any pixels on the page (in raster images), those pixels are going to be resampled to new pixels to become part of the one big raster image you export.
    Consider: Each raster object on the page in Illustrator is independent. Each one can have a different scale (PPI). So even if your document sizes is ridiculously called "1200 pixels x 1200 pixels", it is not. Consider this example and then tell me how it could be:
    Suppose you have drawn a 4" x 4" rectangle on the empty page. You have then rasterized the rectangle at 300 ppi. Clearly, the raster image now contains 1200 x 1200 pixels. But the page rulers say it measures 288 pixels on a side. How can that be? Read on.
    so a 1200 x 1200 pixel document at 300 ppi is 4 inches x 4 inches.
    In Illustrator, this is absolutely not true. A 1200 x 1200 "pixel" document in Illustrator is certainly not 4 inches by 4 inches. It is 16.666 x 16.666 inches. This is because of one simple fact: The "pixels" referred to by Illustrator in its Document Setup dialog and in its rulers are not pixels at all. They are points (1/72 inch).
    If you don't believe that, do this simple exercise:
    Create a new document in your customary way, 1200 x 1200 with Pixels as the unit. Now stop here for just a moment, and look in that document setup dialog for where you tell Illustrator what PPI you want the 1200 x 1200 document to be. Can't find it. It's not there. There is no PPI in an Illustrator document, so you cannot say a 1200 x 1200 pixel Illustrator document is 300 ppi. (If it's anything, it's 72 ppi, but even that is skewed logic.)
    Now rightClick the ruler and change the unit to inches. How big is the document?
    Look at the 1" mark on the ruler. Change the ruler back to Pixels. How many "pixels" are converted to an inch? Keep doing this. Use any trick you can find in Illustrator to make its rulers convert an inch to anything other than 72 "pixels."
    Now answer this: How big is a pixel?
    You can't answer that question because a pixel can be any size you want it to be. It's like asking 'how big is a space?' The very fact that you can scale an image to any ppi you want (make it 1200 ppi or 12 ppi, without adding or destroying any pixels) prooves that a pixel has no fixed measure. And that's why it's ridiculous for a program like Illustrator to use "pixels" as an absolute distance measure in its rulers the same way it used inches or centimeters. It's pure nonsense.
    If a pixel has no fixed measure, then how in the world can you use it as a unit of measure on a ruler? You can't; not legitimately, not in the sense of measuring dimensions of objects or pages. (Remember? Illustrator handles objects. Illustrator's rulers tell you the size of the objects.) Anywhere on that page, there may be a 1200 x 1200 pixel raster image, somehow occupying 72 "pixels" or 3000 "pixels" or 150 "pixels" of your page. Used as it is in Illustrator's rulers, "pixels" is nonsense.
    Illustrator's "pixel" rulers are a complete sham. You can put a 1200 x 1200 pixel image on an Illustrator page and make it "measure" any number of sham "pixels" according to Illusrator's rulers you want. Therein lies the answer to your question:
    Forget about Illustrator's rulers as being a count of pixels. It is not. It's a measure of 1/72" units (in other words, points). Do not think of the sham "pixels" on the ruler as being pixels. Think of them as being what they are: points. Then your confusion will begin to clear.
    Better yet, don't use sham "pixels" as your ruler units at all. You want a 1200 x 1200 pixel raster image exported from Illustrator at a scale of 300 ppi, right?
    You've been told you can't do that using the Save For Web & Devices dialog. If you've read and understood the above, you should now know that is not true. You would of course use the Export dialog to create a raster image that embeds a scale factor other than 72 PPI in the image file, because the Save for Web & Devices dialog assumes a browser which ignores the scale factor embedded in a raster image file. But for the sake of understanding, let's use Save For Web & Devices anyway:
    Forget about Illustrator's sham rulers. Create your document the size you know you want it to be: 4 inches x 4 inches.
    Create your artwork on the page. You can use raster images, text objects, vector objects, or any combination of those.
    Now you want a 300 PPI raster export of your whole 4" x 4" page. Third grade math tells us that will require 1200 x 1200 pixels.
    File>Save For Web & Devices. The Save for Web & Devices dialog opens. Select the raster file type you want, either JPEG or PNG. Go to the Image Size tab. What do you see? Original Size and settings for New Size. Original Size is 288 x 288 pixels (See? Illustrator unyieldingly considers a pixel on its rulers to mean 1/72 inch). But you can enter 1200 x 1200 (or any other desired pixel count). Click Apply.
    Save. Select Images Only.
    Launch InDesign. Import the image. Note the size. (Does 16.666 ring a bell?) In the Scale X Percentage field, key "4 in". (That's right, key an absolute value into the percentage field.)
    You now have a 1200 x 1200, 300ppi image. You did it using the Save For Web & Devices dialog. And you didn't even use Illustrator's ridiculous "pixel" rulers.
    JET

  • Text Appearing as 1-Pixel-Sized Boxes in CS2

    Greetings,
    I'm having a problem with text inside Photoshop CS2. I've never had this problem before so I'm not sure what's causing it or how to fix it-- obviously.
    I first noticed this problem when I was doing some work in Photoshop earlier today. I was working on a 1024 x 1024 image and noticed that when I tried to add text that I couldn't see it at all. It wasn't hidden behind any layers as the text layer was at the top, the opacity was set to 100%, the layer wasn't hidden, so it should have been visible... but it wasn't. I tried increasing the font size up to the max but again I couldn't see it.
    Wondering what the heck was going on I created a new image file at 190 x 190 pixels and tried to add in text. This time something appeared and I realized why I couldn't see the text on the previous piece... because the text, for some reason, is appearing as tiny 1 pixel by 1 pixel sized boxes (and the font size is set to 72). If I lower the font size to anything below 72, than the boxes simply disappear. It doesn't matter if it's custom font or the standard font, it all does the same thing.
    I was doing some work yesterday in Photoshop so I'm not sure if I accidentally hit some option that's causing this and I didn't realize it; though the text was working yesterday...
    I've been trying to trace back through the option panels to see if there's anything that might cause this to happen but I haven't found anything yet.
    Does anyone happen to know what's going on here and how I can fix this?
    Any help would be much appreciated. Thank you for your time.

    > Well, I went into Image > Image Size and it does look like the resolution is set to 1 (I don't remember ever changing it, but who knows). But if I try to set the resolution to 72, the width and height jump up to 73,728 pixels... which, when I tried to have it increase to that size, made Photoshop and my computer wig out and took me an hour just to get the program to close.
    For sure you had "Resample Image" checked. You should have had that unchecked. You don't want to re-sample (increase or decrease the number of pixels), you just want to change the resolution-to-dimension relationship. You want to increase the resolution without re-sampling, which will cause your dimensions (in inches or centimeters) to decrease (probably by quite a bit if your resolution was set at 1 pixel (per inch?).
    All this works better if you sort of think things through beforehand. If you know you are producing an 8.5"x11" sheet and you know that you will be printing it out at about 300 pixels per inch, then you create your canvas with those dimensions and resolution or, if you are using an image instead of a blank canvas you crop and Image Size the image to that dimension and resolution. Then, when you add your text, the font size in points will be roughly what you would expect from a word processing application. 10-12 pt text will come out similar to a normal "typewritten" text document, for example.

Maybe you are looking for