10.4.11 server and MySQL - almost there need some help - socket issue

After having problems with launching the mysql server on the built-in mysql (4.x) on my 10.4 server, I installed 5.1.31 from MySQLCom and followed the install instructions. I attempt to start the server with mysqld_safe as documented.
This appears to actually launches the process, and the error log doesnt show any errors, and it shows up as mysqld in Activity Monitor, but I can't connect to it via mysql client - I keep getting "Can't connect to local MySQL server through socket /var/mysql/mysql.sock".
Any suggestions would be very welcome...

Hi,
We sorted the problem, one issue was that we did not have the hostname set to the FQDN that was needed for the home folder mounts, this stopped the proper traversal of the /Network/Servers symbolic link. And the other issue is that on our 10.5 afp servers we needed to have the 'Open Directory Server' option set for LDAP Mappings in Directory Utility to be able to see all users in the 10.4 OD.
J

Similar Messages

  • AVR TOOL CHAIN packages almost ready, need some help

    Hello
    I've made packages for AVR programming: the following
    binutils-2.17 -> avr-binutils
    gcc-4.1.1 -> avr-gcc
    avr-libc-1.4.4 -> avr-libc
    avrdude-5.1 -> avrdude
    uisp-20050207 -> uisp
    whith prefix (installed) at /opt/avr
    I would like some help with the following:
    [1]
    In both `avr-binutils' and `avr-gcc' exists a file with the same name, this is libiberty.a.
    if I execute
    pacman -A avr-binutils-2.17-1.pkg.tar.gz
    and
    pacman -A avr-gcc-4.1.1.pkg.tar.gz
    i get an error from pacman about the existence of the libiberty.a on the filesystem.
    If i force the installation of avr-gcc everything works ok (i mean there is no problem with the installed software, it should work that way if you install it with the ../configure && make && make install way).
    what should I do with that? I can't upload conflicting packages.
    [2]
    PATH and MANPATH must be updated to new ones after installation of packages, how can i do that?
    [3] If i leave commented the line
    # NOSTRIP="1"
    in the /etc/makepkg.conf, the gcc compiles with warnings , which actually are errors for the final installed software. Actually the avr compiler executable is `avr-gcc' and
    If I permit makepkg to strip the executables produced, there is a problem.
    If I uncomment NOSTRIP but execute later through a `install' script (the usual pre_install , post_install) the strip command everything works fine.
    The strip issue is because the binutils and gcc packages are configured  with --target=avr (output are executables for avr programming).
    Should I do something with that or leave it that way with manual stripping?
    my stripping is:
    # arg 1: the new package version
    post_install() {
    find /opt/avr -type d -name bin -exec find {} -type f ; | xargs strip > /dev/null 2>&1
    Any ideas why that is happening?
    PS. I deleted the --march=i686 from /etc/makepkg.conf , because the packages are configured with --target=avr

    [1] Delete the conflicting file from avr-gcc. The dependency relationship with avr-binutils will ensure that the file is in place.
    [2] This is done with a script in /etc/profile.d. Have a look at the mozille, gnome, kde, or other current examples to see how it works.

  • Menus, Tabs and Tree Views I need some help

    heya,
    I am quite new here! I was searching desperately on a solution on how to fix my code. I need to do a menu in Java and bellow two boxes, one in which I will display a static tree structure (on the left side of the window) and one where I have some tabs (on the irght side of the window).
    Now, today I was playing around with the tree structure view and also trying to use modules in my code for a more easy debugging and understanding later on and I managed to screw up the functionality for good :D.
    Please some help, where am I going wrong and what is missing in my application.
    Here are my 4 files:
    ______File ModulMeniu____________
    package modules;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.BorderFactory;
    import javax.swing.border.Border;
    import javax.swing.JTabbedPane;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JMenuItem;
    import javax.swing.JCheckBoxMenuItem;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.UIManager;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.TreeSelectionModel;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.net.URL;
    import java.io.IOException;
    public class ModulMeniu extends JPanel {
    protected Action loadConfigurationAction, saveConfigurationAction, stopAction, continueAction, exitAction, newFilterAction, allFiltersSentAction;
    protected Action currentFilterAction, allComputersAction, probesAction, deleteAction, resetAction, hideComputersAction, backgroundAction;
    protected Action computerAction, filterAction, searchFilterByNameAction, searchPackageByPositionAction, deleteFilterAndRuleAction ;
    public ModulMeniu() {
    //Creates the actions shared by the toolbar and menu.
    loadConfigurationAction = new LoadConfigurationAction("Load Configuration",
    "This allows to load a previous configuration.",
    new Integer(KeyEvent.VK_L));
    saveConfigurationAction = new SaveConfigurationAction("Save Configuration",
    "This allows to save the current configuration.",
    new Integer(KeyEvent.VK_S));
    stopAction = new StopAction( "Stop",
    "This stops the Client.",
    new Integer(KeyEvent.VK_T));
    continueAction = new ContinueAction( "Continue",
    "This continues the traffic observing where we left on.",
    new Integer(KeyEvent.VK_C));
    exitAction = new ExitAction( "Exit",
    "This exits the Application.",
    new Integer(KeyEvent.VK_E));
    newFilterAction = new NewFilterAction( "New Filter",
    "This creates a new filter.",
    new Integer(KeyEvent.VK_N));
              allFiltersSentAction = new AllFiltersSentAction( "All Filters Sent",
    "This displays all the filters sent.",
    new Integer(KeyEvent.VK_A));
    currentFilterAction = new CurrentFilterAction( "Current Filter",
    "This displays the current filter.",
    new Integer(KeyEvent.VK_C));
    allComputersAction = new AllComputersAction( "All Computers",
    "This displays all the computers in the network.",
    new Integer(KeyEvent.VK_L));
    probesAction = new ProbesAction( "Probes",
    "This displays all the probes in the network.",
    new Integer(KeyEvent.VK_P));
    deleteAction = new DeleteAction( "Delete",
    "This deletes the filter.",
    new Integer(KeyEvent.VK_D));
    resetAction = new ResetAction( "Reset",
    "This resets the client.",
    new Integer(KeyEvent.VK_R));
    hideComputersAction = new HideComputersAction( "Hide Computers",
    "This hides given computers.",
    new Integer(KeyEvent.VK_H));
    backgroundAction = new BackgroundAction( "Background",
    "This sets the background color.",
    new Integer(KeyEvent.VK_B));
    computerAction = new ComputerAction( "Computer",
    "This sets the computer color.",
    new Integer(KeyEvent.VK_C));
    filterAction = new FilterAction( "Filter",
    "This sets the filter color.",
    new Integer(KeyEvent.VK_F));
    searchFilterByNameAction = new SearchFilterByNameAction( "Search Filter By Name",
    "This searches a filter by its name.",
    new Integer(KeyEvent.VK_F));
    deleteFilterAndRuleAction = new DeleteFilterAndRuleAction( "Delete Filter And Rule",
    "This deletes a filter or a rule.",
    new Integer(KeyEvent.VK_D));
    public JMenuBar createMenuBar() {
    JMenuItem menuItem = null;
    JMenuBar menuBar;
    //Create the menu bar.
    menuBar = new JMenuBar();
    //Create the first menu.
    JMenu fileMenu = new JMenu("File");
    JMenu setMenu = new JMenu("Set");
    JMenu viewMenu = new JMenu("View");
    JMenu optionsMenu = new JMenu("Options");
    JMenu colorsMenu = new JMenu("Colors");
    JMenu searchMenu = new JMenu("Search");
    JMenu deleteMenu = new JMenu("Delete");
    Action[] actions1 = {loadConfigurationAction, saveConfigurationAction, stopAction, continueAction, exitAction};
    for (int i = 0; i < actions1.length; i++) {
    menuItem = new JMenuItem(actions1);
    fileMenu.add(menuItem);
    Action[] actions2 = {newFilterAction};
    menuItem = new JMenuItem(actions2[0]);
    setMenu.add(menuItem);
    Action[] actions3 = {allFiltersSentAction, currentFilterAction, allComputersAction, probesAction};
    for (int j = 0; j < actions3.length; j++) {
    menuItem = new JMenuItem(actions3[j]);
    viewMenu.add(menuItem);
    Action[] actions4 = {deleteAction, resetAction, hideComputersAction};
    for (int i = 0; i < actions4.length; i++) {
    menuItem = new JMenuItem(actions4[i]);
    optionsMenu.add(menuItem);
    Action[] actions5 = {backgroundAction, computerAction, filterAction};
    for (int i = 0; i < actions5.length; i++) {
    menuItem = new JMenuItem(actions5[i]);
    colorsMenu.add(menuItem);
    Action[] actions6 = {searchFilterByNameAction};
    menuItem = new JMenuItem(actions6[0]);
    searchMenu.add(menuItem);
    Action[] actions7 = {deleteFilterAndRuleAction};
    menuItem = new JMenuItem(actions7[0]);
    deleteMenu.add(menuItem);
    //Set up the menu bar.
    menuBar.add(fileMenu);
    menuBar.add(setMenu);
    menuBar.add(viewMenu);
    menuBar.add(optionsMenu);
    menuBar.add(colorsMenu);
    menuBar.add(searchMenu);
    menuBar.add(deleteMenu);
    return menuBar;
    public class LoadConfigurationAction extends AbstractAction {
    public LoadConfigurationAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class SaveConfigurationAction extends AbstractAction {
    public SaveConfigurationAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class StopAction extends AbstractAction {
    public StopAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class ContinueAction extends AbstractAction {
    public ContinueAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class ExitAction extends AbstractAction {
    public ExitAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class NewFilterAction extends AbstractAction {
    public NewFilterAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class AllFiltersSentAction extends AbstractAction {
    public AllFiltersSentAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class CurrentFilterAction extends AbstractAction {
    public CurrentFilterAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class AllComputersAction extends AbstractAction {
    public AllComputersAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class ProbesAction extends AbstractAction {
    public ProbesAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class DeleteAction extends AbstractAction {
    public DeleteAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class ResetAction extends AbstractAction {
    public ResetAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class HideComputersAction extends AbstractAction {
    public HideComputersAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class BackgroundAction extends AbstractAction {
    public BackgroundAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class ComputerAction extends AbstractAction {
    public ComputerAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class FilterAction extends AbstractAction {
    public FilterAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class SearchFilterByNameAction extends AbstractAction {
    public SearchFilterByNameAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    public class DeleteFilterAndRuleAction extends AbstractAction {
    public DeleteFilterAndRuleAction(String text,String desc, Integer mnemonic) {
    super(text);
    putValue(SHORT_DESCRIPTION, desc);
    putValue(MNEMONIC_KEY, mnemonic);
    public void actionPerformed(ActionEvent e) {
    ___FIle ModulTabbedArea________
    //pls consider I have all the imports of the first file
    public class ModulTabbedArea extends JPanel{
         public JTabbedPane tabbedPane;
         public ModulTabbedArea(){
         public JTabbedPane createTabbedArea(){
    Border paneEdge = BorderFactory.createEmptyBorder(0,10,10,10);
    JPanel IP = new JPanel();
    IP.setBorder(paneEdge);
    IP.setLayout(new BoxLayout(IP,BoxLayout.Y_AXIS));
    JPanel TCP = new JPanel();
    TCP.setBorder(paneEdge);
    TCP.setLayout(new BoxLayout(TCP,BoxLayout.Y_AXIS));
    JPanel UDP = new JPanel();
    UDP.setBorder(paneEdge);
    UDP.setLayout(new BoxLayout(UDP,BoxLayout.Y_AXIS));
    JPanel ICMP = new JPanel();
    ICMP.setBorder(paneEdge);
    ICMP.setLayout(new BoxLayout(ICMP,BoxLayout.Y_AXIS));
    JPanel ARP = new JPanel();
    ARP.setBorder(paneEdge);
    ARP.setLayout(new BoxLayout(ARP,BoxLayout.Y_AXIS));
    JPanel RARP = new JPanel();
    RARP.setBorder(paneEdge);
    RARP.setLayout(new BoxLayout(RARP,BoxLayout.Y_AXIS));
    JPanel UNKNOWN = new JPanel();
    UNKNOWN.setBorder(paneEdge);
    UNKNOWN.setLayout(new BoxLayout(UNKNOWN,BoxLayout.Y_AXIS));
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("IP", null, IP, null);
    tabbedPane.addTab("TCP", null, TCP, null);
    tabbedPane.addTab("UDP", null, UDP, null);
    tabbedPane.addTab("ICMP", null, ICMP, null);
    tabbedPane.addTab("ARP", null, ARP, null);
    tabbedPane.addTab("RARP", null, RARP, null);
    tabbedPane.addTab("UNKNOWN", null, UNKNOWN, null);
    return(tabbedPane);
    ___File ModulTree____
    //all the imports and the import of the package above
    public class ModulTree extends JPanel implements TreeSelectionListener {
    public JTree tree;
    private boolean DEBUG = false;
    public ModulTree() {
    //Create the nodes.
    DefaultMutableTreeNode top =new DefaultMutableTreeNode("Computers:");
    createNodes(top);
    //Create a tree that allows one selection at a time.
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode (TreeSelectionModel.SINGLE_TREE_SELECTION);
    //Listen for when the selection changes.
    tree.addTreeSelectionListener(this);
    /** Required by TreeSelectionListener interface. */
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)
    tree.getLastSelectedPathComponent();
    if (node == null) return;
    Object nodeInfo = node.getUserObject();
    if (node.isLeaf()) {
    IPInfo ipAndName = (IPInfo)nodeInfo;
    if (DEBUG){           
    if (ipAndName.name==""){
         System.out.println(ipAndName.ip+ ": \n ");
    else {
    System.out.print(ipAndName.ip + ipAndName.name + ": \n ");
    if (DEBUG) {
    System.out.println(nodeInfo.toString());
    private class IPInfo {
    public String ip;
    public String name;
    public IPInfo(String adresaIP, String numeleComputerului) {
    ip=adresaIP;
    name=numeleComputerului;
    public String toString() {
    return ip + name;
    private void createNodes(DefaultMutableTreeNode top) {
    DefaultMutableTreeNode category = null;
    DefaultMutableTreeNode ipAndName = null;
    category = new DefaultMutableTreeNode("Computers in the Network");
    top.add(category);
    ipAndName = new DefaultMutableTreeNode(new IPInfo
    ("216.27.61.137",
    "Artemis"));
    category.add(ipAndName);
    ipAndName = new DefaultMutableTreeNode(new IPInfo
    ("216.32.61.132",
    "Venus"));
    category.add(ipAndName);
    ipAndName = new DefaultMutableTreeNode(new IPInfo
    ("216.132.61.11",
    "Zeus"));
    category.add(ipAndName);
    category = new DefaultMutableTreeNode("Probes in the Network");
    top.add(category);
    ipAndName = new DefaultMutableTreeNode(new IPInfo
    ("10.11.11.1",
    "Probe1"));
    category.add(ipAndName);
    ipAndName = new DefaultMutableTreeNode(new IPInfo
    ("10.11.1.1",
    "Probe2"));
    category.add(ipAndName);
    __File ModulMain___
    //all the imports and imports also modules.*
    public class ModulMain extends JFrame{
         public ModulMain(){
    private static void createAndShowGUI() {
    //Create and set up the window.
    JFrame frame = new JFrame("Sistem grafic de monitorizare a unei retele");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create/set menu bar and content pane.
    ModulMeniu menu = new ModulMeniu();
    frame.setJMenuBar(menu.createMenuBar());
    //Create the scroll pane and add the tree to it.
    JScrollPane treeView = new JScrollPane(tree);
    JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    splitPane.setLeftComponent(treeView);
    splitPane.setRightComponent(tabbedPane);
    Dimension minimumSize = new Dimension(100, 50);
    tabbedPane.setMinimumSize(minimumSize);
    treeView.setMinimumSize(minimumSize);
    splitPane.setDividerLocation(100); //XXX: ignored in some releases
    //of Swing. bug 4101306
    //workaround for bug 4101306:
    //treeView.setPreferredSize(new Dimension(100, 100));
    splitPane.setPreferredSize(new Dimension(500, 300));
    //Add the split pane to this panel.
    add(splitPane);
    menu.setOpaque(true); //content panes must be opaque
    frame.setContentPane(menu);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    This is it guys! The code is not hard, just long and I need to deliver this project and I just dunno what to do to it to make it work :(. I appreciate any help I can get :p.
    THANK YOU for your time!
    Cristina

    hey friend,
    i don't have solution to your problem but i am facing the same problem in my project, i need to fetch filenames from folder and show it in a tree view. if you have any solution then please refer me with code..!1
    thanx in advance..

  • ITextSharp PDF library and VB Controls. Need some help ...

    Hi there everybody.
    Mainly for those who are into pdf and in particular iTextSharp library.
    In this example I have a very simple Label control on Form, with text in it.
    I want to build a very simple pdf test file with just one A4 page, and draw Label's Rectangle and Text exactly as I see on Form. Should be a simple task, as I've always read iTextSharp to be quite powerful library. In fact it's not as simple as it seems.
    Here is the code I use for my test :
    Dim fullPdfFileName As String = Application.StartupPath & "\" & "test.pdf"
    'The FileStream
    Dim FS As New System.IO.FileStream(fullPdfFileName, IO.FileMode.Create)
    'The Document
    Dim DOC As New iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0)
    'The PdfWriter
    Dim PdfW As iTextSharp.text.pdf.PdfWriter = iTextSharp.text.pdf.PdfWriter.GetInstance(DOC, FS)
    DOC.Open()
    'The PdfContentByte
    Dim PdfCB As iTextSharp.text.pdf.PdfContentByte = PdfW.DirectContent
    'Set Stroke properties
    With PdfCB
    .SetRGBColorStroke(255, 0, 0) 'RED
    .SetLineWidth(1)
    End With
    'Draw the Label Rectangle
    Dim X As Integer = GetDotsFromPixels(100)
    Dim Y As Integer = GetDotsFromPixels(100)
    Dim W As Integer = GetDotsFromPixels(lbl_test.Width)
    Dim H As Integer = GetDotsFromPixels(lbl_test.Height)
    PdfCB.Rectangle(X, Y, W, H)
    PdfCB.Stroke()
    'Draw the Label's Text
    Dim BS As iTextSharp.text.pdf.BaseFont = _
    iTextSharp.text.pdf.BaseFont.CreateFont(iTextSharp.text.pdf.BaseFont.HELVETICA, _
    iTextSharp.text.pdf.BaseFont.CP1252, False)
    With PdfCB
    .BeginText()
    .SetFontAndSize(BS, lbl_test.Font.Size)
    .SetTextMatrix(X, Y)
    .ShowText(lbl_test.Text)
    .EndText()
    End With
    DOC.Close()
    FS.Close()
    And this is the very simple GetDotsFromPixels Function that makes 100 Pixels of the Label as one Inch on pdf file and paper, and it works for me :
    Private Function GetDotsFromPixels(ByVal pPixels As Integer) As Integer
    Return Convert.ToInt32(72 / 100 * pPixels)
    End Function
    The output is a pdf file with a red rectangle that is exactly 3 Inches in width and 1 Inch in height, while the Label
    lbl_test is 300x100.
    The problem is the way iTextSharp draws strings and uses Fonts.
    The string is printed in black and in the lower-left corner of the rectangle.
    The Font of the Label is Arial - Bold and top-left aligned, but there's no Arial or many else windows fonts named in BaseFont standard Fonts...
    I need to be able to print out the exact string shown in the label, with its original Font, Size, Color and Position.
    I know X Y coordinates are different with pdf page, and Y = 0 is at the bottom of the page, but if I add rectangle's height to string Y coordinate, then the string would be printed above the rectangle and not inside of it, and I would have to "calculate
    string's height" too...
    Another thing about the Font. iTextSharp's BaseFont seems to lack in properties : where are styles, colors, etc... ?
    Maybe there are others Objects and Methods in the library allowing to do what I want...
    Thanks to everyone able to help.

    Ok, no problem.
    Anyway, I've found myself a possible solution, without any use of the BaseFont.
    It's based on the following Classes/Methods :
    iTextSharp.text.Font
    iTextSharp.text.FontFactory.GetFont()
    iTextSharp.text.pdf.ColumnText
    iTextSharp.text.pdf.ColumnText.SetSimpleColumn()
    I post here the complete code :
    Dim fullPdfFileName As String = Application.StartupPath & "\" & "test.pdf"
    'The FileStream
    Dim FS As New System.IO.FileStream(fullPdfFileName, IO.FileMode.Create)
    'The Document
    Dim DOC As New iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0)
    'The PdfWriter
    Dim PdfW As iTextSharp.text.pdf.PdfWriter = iTextSharp.text.pdf.PdfWriter.GetInstance(DOC, FS)
    DOC.Open()
    'The PdfContentByte
    Dim PdfCB As iTextSharp.text.pdf.PdfContentByte = PdfW.DirectContent
    'Set Stroke properties
    With PdfCB
    .SetRGBColorStroke(255, 0, 0) 'RED
    .SetLineWidth(1)
    End With
    'Draw the Label Rectangle
    Dim X As Integer = GetDotsFromPixels(200)
    Dim Y As Integer = GetDotsFromPixels(100)
    Dim W As Integer = GetDotsFromPixels(lbl_test.Width)
    Dim H As Integer = GetDotsFromPixels(lbl_test.Height)
    PdfCB.Rectangle(X, Y, W, H)
    PdfCB.Stroke()
    'Draw the Label's Text
    Dim F As iTextSharp.text.Font = iTextSharp.text.FontFactory.GetFont(lbl_test.Font.Name, _
    lbl_test.Font.Size)
    Dim CT As New iTextSharp.text.pdf.ColumnText(PdfCB)
    CT.SetSimpleColumn(New iTextSharp.text.Phrase(lbl_test.Text, F), _
    GetDotsFromPixels(200), _
    GetDotsFromPixels(100), _
    GetDotsFromPixels(200 + lbl_test.Width), _
    GetDotsFromPixels(100 + lbl_test.Height), _
    GetDotsFromPixels(Convert.ToInt32(F.Size) + 5), _
    iTextSharp.text.Element.ALIGN_LEFT)
    CT.Go()
    DOC.Close()
    FS.Close()
    I think this is one of the best ways to put some text with desired font and position.
    Thanks for attention.

  • Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ask in the ID forum and be much more specific about your configuration. there could be any number of reasons why manifests, temp files or restore files are created.
    Mylenium

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • HT1937 hello all....i need some help 2 can activate my 4s,i paid 4 unlock code and cant actvaite my phone ,the server support told me thats phone unlocked done.but apple server not say that..my imei 990001021636113

    hello all....i need some help 2 can activate my 4s,i paid 4 unlock code and cant actvaite my phone ,the server support told me thats phone unlocked done.but apple server not say that..my imei 990001021636113

    There is no such thing as an "unlock code" for an iPhone. It's done through iTunes after being approved by the carrier it is locked to.
    Go back to the carrier it is locked to and find out what the status is. If you paid someone else to unlock it, you got ripped off.

  • My iphone 4 has switch of itself, and cant switch on its blankout , i need some help to solve this matter, My iphone 4 has switch of itself, and cant switch on its blankout , i need some help to solve this matter

    i need some help! my i phone has switch off totally blank as if there is no baterry, i cant wsitch on anymore, i live in Africa whereby there is no any  apple offises arroung, i want to find a solution thats why i am asking for the help

    Plug in iPhone with Wall Charger for 10 minutes, it may turn on itself. If not, keep on Wall Charger and Reset, hold both Home and Power buttons until the iPhone begins to restart. This usually takes less than 20 seconds of holding both buttons.

  • I'm new to itunes and need some help. Can anyone tell me if it is possible to download an album which has explicit content without actually downloading the explicit songs?

    I'm new to itunes and need some help.  Can anyone tell me if it is possible to download an album which has explicit songs without actually downloading the songs that are explicit?

    See if there's a non-explicit version and download that?  Just download the individual songs you want, and not the others?
    Honestly, your phrasing doesn't make sense.  You're asking how to download an album without downloading its tracks? 

  • Unable to bootup after Yosemite install. have to keep shutting down from rear button. it does come on after a few times but then hangs at user login again. If you get in it is great. Seems faster than Mavericks but there is some sort of issue, bouts

    unable to bootup after Yosemite install. have to keep shutting down from rear button. it does come on after a few times but then hangs at user login again. If you get in it is great. Seems faster than Mavericks but there is some sort of issue, bootup /login.

    Knock on wood, this seems to have been my problem as well.  I stumbled on this thread after dealing with this ridiculously-long boot times for the past several weeks.
    I just reinstalled McAfee Antivirus and my Macbook Air booted up in less than 1 minute.  No more hanging on the boot-up progress bar.  No more hanging after I click on my user's avatar on the log-in screen.  Bootup would often take 5+ minutes and sometimes never complete.
    This has been SUPREMELY frustrating.
    THANK YOU SO MUCH FOR POSTING YOUR RESPONSE!!!

  • My iPhone 3g has 2 white horizontal lines i don't know where did it came from. I turn it off then on but its still there. the lines spreads everyday. I dont know how to fix it. need some help guys.

    my iPhone 3g has 2 white horizontal lines i don't know where did it came from. I turn it off then on but its still there. the lines spreads everyday. I dont know how to fix it. need some help guys.

    If you take a screenshot (Press the home button and Lock button at the same time), does it appear on the screenshot? Zoom in on the screenshot and see if it's still there.
    If not, then your display is failing. I would recommend taking it to an Apple Store if you can, if you can't then to an authorised Apple reseller.
    If it does appear on the screenshot when you zoom into the spot, then it's a really weird software issue! You might have to backup and restore the device.
    Let me know!
    xeni

  • Stupidly partition hdd on window7 in IMAC A1311, and now I can not use the IMAC...... Need some help

    Just bought a used IMAC A1311 core 2 duo, and there are something called Bootcamp and Window7 on it, and i log in to Window7 and stupidly partition hdd on it, and i think it has formatted everything. now the window7 is error and I do hold (alt) key when I start up the machines , it show only the window7 hdd  and i don't see any Recoery HDD........what should i do? Really need some helps right now.........

    There are several models that use A1311. So I don't know exactly what model you have. If you received installer discs with the computer, then you will need to boot from Disc 1, erase the drive, and install Snow Leopard. Some models in the A1311 line can use Internet Recovery:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    This should restore the version of OS X originally pre-installed on the computer.

  • I lost my ipod touch 4g and I have find my iphone on but I dont know how to find it. I need some help to track my stolen ipod touch 4g.

    I need some help to track my lost ipod touch 4g

    If you set up the Find My iPod service prior to the iPod going missing, then there is a chance that can be tracked, though it depends on a number of factors (the iPod is turned on, connected to a WiFi network, and has not had the Find My iPod service disabled or the iPod been completely restored). 
    If you did not set up Find My iPod, then there is no way to track it. Contact the police in case someone turns it in, and change any passwords for any online accounts you may have used from your iPod (the iTunes Store, for instance). 
    Regards.

  • Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Tho

    Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Thoughts???

    thought that it was possible to have the same iTunes library on any machine that was authorised, a kind of cloud-iTunes I guess. 
    That would convenient, but sadly it is not the case. Sorry!
    Either way your welcome and best of luck!
    B-rock

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

Maybe you are looking for

  • F-48- Downpayement related to downpayment request and enhancements for PO

    Hi to all, Is there anyone that can explain me why in F-48 transaction, when I make a downpayment related to downpayment request, in the subsequent screen the fields are filled with the value retrieve from previous screen ( in which I selected the do

  • Creation of Multiple Supplier Registration Questionnaires

    We have one generic supplier reqistration for all product categories. We now want additional questionniares for specific product categories with some having multiple questionnaires for one product category. One Product category could have 3-4 quesito

  • How to transfer parameters to Webdynpro Java application ?

    Hello guys, I had developed a Webdynpro Java application "ZWD", it's URL is "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD". "ZWD" had 2 input parametere "InputField" and "InputField1" . Accroding to SAP Online Help  document, we ca

  • Search help control size

    Hi, I find it rather annoying and I think it used to be better: Calling any (user-defined) search help using F4 I always get a dialog control almost covering the full screen height - regardless of the number of entries shown. Is there any way, i.e. i

  • Why isn't ID dynamic?

    I really wish I could use a dynamic EL expression to set the ID of a component, for example <h:commandButton>. JSF is just allowing the ID to be static text. The reason is for automated testing: I would like to put a computed value into the ID and th