Import drive label value inside a file to be visible when downloaded or printed - label

In our company we want to enforce our classification scheme and insert classification labels to our files in Google Drive. A badged label called Classification Level has been created, and three (3) options have been defined. A user can manually assign the label and choose the appropriate value manually, and we have also created some DLP rules for automatic classification based on conditions.
However, the classification label when the file is printed or downloaded is not visible anywhere inside the file, thus our handling guidelines cannot be followed since the custodian of the file is not aware of the classification label (criticality) of the file.
Is it possible to bring the most updated value of the drive label inside the document (i.e. header, footer, cover page) and this value to be visible when the file is downloaded or printed?
Thank you in advance!
Created drive label but could not import it in the file.

Related

Image Comparison in Pace Automation Framework

Which tag is used to compare images using computer vision in PAF?
For example, I want to check whether an image is present in the full screen of web application while automation. The tag should be able to return the precision.
CV tag can be used to compare images using computer vision API. This is supposed to help us automate static UI testing. The way it would work is as follows.
Screenshot of the screen area to be validated would be captured while writing scripts.
Screenshot of the full screen will be taken at runtime.
The screen area captured at the time of script creation would be compared against the screenshot taken at runtime.
The output would be a screenshot where the matched image would be marked in the screenshot, x and y coordinates (in variables) and the matching precision (in variable).
Generally, when the image matches, the precision is above 0.995 or something. When the script is being built, we need to check the precision number and validate the same with validation tag.
Syntax:
<cv screenshotFile="" fileToMatch="" outputFile="" resultVarName="" locXVarName="" locYVarName="" desktop=""></cv>
screenshotFile - contains the location where the screenshot will be
saved at runtime.
fileToMatch - contains the path of the screen area image that
needs to be checked in the screenshot
outputFile - path where the output file containing the image
matching result needs to be saved
resultVarName - name of the variable which will contain the
matching precision output
locXVarName - Name of the variable which will contain the x
coordinate where the image has matched in the screenshot
locYVarName - Name of the variable which will contain the y
coordinate where the image has matched in the screenshot
desktop -
whether the screenshot is a robot screenshot or not. If this is
false, it will use selenium to take the screenshot in the browser.
If true, it will use robot screenshot.

How do I print multiple ioComp Plotx plots to a Nova PDF 'printer'?

I am trying to print the images from the ioComp iPlotX object to a PDF printer. This object has iPlotX.SaveToBitmap, which does work and I can 'send' the file to the PDF printer, but the image is blurry, the bitmap is 96 DPI.
The control has iPlotX.PrintChart method which is supposed to go directly to a printer. There is also a method to indicate which Windows printer to direct the output to. I fumbled around to see if I could get anything to work and a couple times I produced an image in the PDF file that was very clear. But other items printed to the page were gone and I only had one page instead of 3 pages. Most of the times nothing is in the PDF file.
A snippet of my relevant code is below.
Me.SinglePlotObject1(iIndex).PlotControl.PrintShowDialog = False
Me.SinglePlotObject1(iIndex).PlotControl.Printername = modNovaPDFConstants.NOVAPDF_PRINTER_NAME
Me.SinglePlotObject1(iIndex).PlotControl.PrintOrientation = poLandscape
Me.SinglePlotObject1(iIndex).PlotControl.PrintChart
This note is from the ioComp.Help:
Note : If you have set PrintShowDialog to TRUE and have set
PrinterName to a non-empty string, then the printer selected by the
user will be ignored! The PrinterName property will always override
the user printer selection, if you are using our printer dialog If
you plan on showing our built-in printer selection dialog to your end
user, then you should set the PrinterName property to an empty string
for everything to work correctly.
Also from their help is :
property PrintXStart : Double Used to specify the starting x-axis Min
value when implementing multi-page printing.
Description: Use PrintXStart to get or set the starting x-axis Min
value when implementing multi-page printing. By default, the
PrintXStart and PrintXStop are initialized to the Min and Max of the
x-axis display on the screen and will only print out one page. You
must manipulate the PrintXStart and PrintXStop in the OnBeforePrint or
OnBeforePrintPage event to have multiple pages print out during a
single print session.
The only example they show is setting the XStart property to 0. I am not sure if this means multiple pages for the same graph, that is, the graph is stretched out over multiple page or is this has something to with different iPlots on separate pages. In the past we have always just used the iPlotX.SaveToBitmap to print. At that time the plots and text were good enough.
If anyone has any experience with ioComp plot controls and printing, I am willing to try any suggestions.
Right now I am trying to create a test application with as little code as possible to test all of their other printer options.
I have tried their FAQ section but could not find anything related to printing using VB6 and the ActiveX controls. When I sent a message to them, a smtp error appeared.
DaveInCaz: Good Idea. I tried a different PDF printer and results are the same. I tried a method of the control called iPrintToDC, passing in the Printer.hDC. This made some progress. I can print two graphs on two pages, but the graphs are about the size of my thumb. If I change width's or height's, it only makes things worse, by somehow placing the bottom of the graph 'above' the title and removing all the contents of the graph itself; it is as if the graph is wrapped around a cylinder and all I see is where the top and bottom meet. When I used the .PrintChart method, only the last of two charts would be printed and nothing else I printed would appear.
Thanks.

How to link or add a default directory for images in Visual Basic

So I've been working on this simple program to look up specs for drawings. One of the specs is a thumbnail image of the drawing. I didn't want to try managing what could be 1000's of images (that could be changed at anytime) in the database so I created a true/false field instead. If true for that record, then the corresponding thumbnail is displayed in a picture box.
It works beautifully.... if I type the entire path in the code. But what if I give the program to a friend? So I've been trying to find a way that the program would find the images to no avail. I've been searching for answers all day and am finally at this point.... asking for help.
If CBool(db.getField("PDF")) = True Then
'pbxPDFThumb.ImageLocation = ("C:\Users\Reed Havoc\Desktop\RCM Database\RCM DataBase 2015 8g\RCM Plans Tool\RCM Plans Tool\Thumbnails\PDFs\" & db.getField("Plan_Num") & "pdf.jpg")
pbxPDFThumb.ImageLocation = ("\Thumbnails\PDFs\" & db.getField("Plan_Num") & "pdf.jpg")
End If
The first line is the entire path commented out to try the second, foreshortened path.
I've been adding my image thumbnail directory to the project in all the different directories that VS establishes on start-up but none seems to be a default so that my added image directory will be recognized.
Not so clear so I'll have 2 answers.
If drawing are not going to be added but you only use the ones you already have, simply store all of the pictures in the project's resource file, which is accessible through code and builds into the EXE
If the user adds drawings themselves there are two options. There's the more user friendly method: Save the files in a Local appdata folder for the application.
Or, less user friendly and ultimately more work for you. when the application starts, ask the user to identify a directory that does / will contain images.

Replacing part of geometry in three.js

Hello I have a OBJ file exported from 3d max. In the file I assigned parts of the model to groups. I can open my file in text editor I can see vertices and faces assigned to 20 groups.
However when I export to js (to rendered on a webpage using 3js) and look at my file I don't see my groups. Can I retain groups when I convert the file to js or does the json format doesn't support groups?
The overall aim is to be be able to replace parts of the geometry with a click or button. My plan was to write a script to replace groups on runtime but since I am not able to retain group names when exported to .js I am wondering if it's possible to do with 3js?

Word VBA checkboxes with link to image that needs to be built up

I am having problems with a table containing checkboxes in Word.
I am working with a table containing 10 checkboxes. Next to this table, there is an image.
When the user checks one of the checkboxes, something has to be added to the image, i.e. the image is further completed.
However, the order of checking the checkboxes is not fixed or defined, so there are lots of different combinations.
Is there a way to add the additional parts to the original image, linked to the checkboxes? Or is this way too advanced for Word?
Word doesn't have this type of built-in functionality with images. There are too many state combinations for the checkboxes to make an image for each state in advance. One possibility could be to find a dll or ocx and draw the image programatically (advanced). Another would be to edit your image in photoshop and cut it up into 10 separate files using a transparent background. You could then add and remove layers to wherever you are displaying your image and control the z-ordering with vb.

Resources