Zum Hauptinhalt gehen

Suche

Suche

Creating Thumbnails From Librarian Files --> File Not Found!?

Kommentare

4 Kommentare

  • Avatar
    Ian Cummings
    Moderator

    This code example shows you have to get a contents listing on a Librarian directory:

     

    Library library = new Library(); 
    
    LibrarianFolder folder = library.GetFolder("lib://Formats");
    
    
    // Iterate through the subfolders 
    
    StringBuilder listingBuilder = new StringBuilder(); 
    
    foreach (LibrarianFolder subfolder in folder.Folders) 
    
    listingBuilder.AppendFormat("Folder\t{0}\t{1}\tChildren: {2}\n", subfolder.Name, subfolder.Path, subfolder.Children.Count);
    
    // Iterate through the files in the directory 
    
    foreach (LibrarianFile file in folder.Files) 
    
    listingBuilder.AppendFormat("File\t{0}\t{1}\tRevision: {2}\n", file.Name, file.Path, file.RevisionNumber);
    
    // Display the contents of the folder 
    
    System.Windows.Forms.MessageBox.Show(listingBuilder.ToString(), string.Format("Folder Contents ({0})", folder.Path)); 
    
    

    And here is an example of creating a thumbnail using the LabelFormatThumbnail Class

     

       // Create an image of the format.
       Image image = LabelFormatThumbnail.Create(@"C:\Format1.btw", Color.White, 400, 400);
    
       // Save that image to file
       image.Save(@"C:\ImageThumbnail.bmp");
    
    
    0
  • Avatar
    Legacy Poster

    So the only way to create thumbnails from librarian formats is to persist them to local disc?

    0
  • Avatar
    Ian Cummings
    Moderator

    Hmm, yes I'd guess so...

    0
  • Avatar
    Legacy Poster

    how i can make a new PDF417 code with data i have mobile phone IMEI 
    i want minimum 20 IMEI in one PDF417 Code but i dont know how to put data and how to generate new code 
    anybody can help me or send me PDF417 Code Symbol 
    I am Using barcode 10 with license 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.