Thumbnail Files Follow
Lets see if I can go 0-3 on getting a response to forum posts here
I am creating thumbnails of my labels to display in my VB.net application. I have an access data source setup along with a query prompt.
When I create an engine and a format and pass a value to the prompt and then create the thumbnailfile from the bt format. the Default values show up in the thumbnail instead of it having the record data show up.
how can I make it so the thumbnail shows the data from the record I chose with my query?
how can I make the default values for all the fields set to the first record of the data source without having to type them all in manually?
here is the code I am using:
Dim QueryString As String
QueryString = "Select First([BARCODE]) FROM [V1-BUN]"
'Create a thumbnail image of the bundle label
Dim btEngine As New Engine(True)
btFormat = btEngine.Documents.Open(lblFileName)
prompts = btFormat.DatabaseConnections.QueryPrompts
prompts.SetQueryPrompt("GetScan", returnValue, returnValue, "")
thumbnailFile = Path.GetTempFileName()
btFormat.ExportImageToFile(thumbnailFile, ImageType.JPEG, Seagull.BarTender.Print.ColorDepth.ColorDepth24bit, New Resolution(1700, 900), OverwriteOptions.Overwrite)
pbBundleLabel.ImageLocation = thumbnailFile
returnValue = ""
Please sign in to leave a comment.