Creating Thumbnails From Librarian Files --> File Not Found!?
When I try:
System.Drawing.Image image = LabelFormatThumbnail.Create(file.Path, Color.AliceBlue, 400, 400);
whith file.Path="lib://foldername/filename.btw" I get a FileNotFoundException.
How can I create thumbnails from Librarian files?
0
-
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 -
Legacy Poster
★ BarTender Hero ★
So the only way to create thumbnails from librarian formats is to persist them to local disc?
0 -
Hmm, yes I'd guess so...
0 -
Legacy Poster
★ BarTender Hero ★
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 license0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare