For some reasons I want to open and edit some documents on a sharepoint site directly in Office (Excel) and not open it from IE. How can i do this? Is this possible? In other words can I directly open (checkout and edit) in Excel a file in a sharepoint-folder?
Do you mean just open document in Word form SharePoint, so that Word will save all changes back when you click save button? There is such functionality by default. Just click to open context menu of item and chose Edit in Microsoft Word.
Related
I have a SharePoint list-integrated Power Apps form.
I have a multi-select combobox called DataCardValue4 (which is hidden) that comes from a choice on the SharePoint list.
I need to put the selected values of this combobox into a collection when the form is edited.
On SharePointIntegration, on Edit, I have:
ForAll(DataCardValue4.SelectedItems, Collect(colVehiclesRequested,ThisRecord.Value));
This works fine when the user opens the form and puts it in edit mode manually. Unfortunately, I have a Power Automate flow which gives a link that opens the form in edit mode directly.
When the form is opened in edit mode, DataCardValue4.SelectedItems is empty at the time of SharePointIntegration on edit.
Is there another way to do this? Is there another place to put this further down the lifecycle so it will work properly?
I guess I'm kind of looking for the document.ready version of a Power Apps-integrated form.
I'd try to put your formula into the Screen.OnVisible property with some conditional wrapping. This would make sure it (also) runs when it is opened directly.
I had the same issue, I added the code in the App.OnStart
I'm working in the Office RibbonX Editor and I'm trying to reuse the show|hide gridlines from the view tab on my custom tab. I can't find how to duplicate that in my xml. Any idea's on either how to do that, or where I can find the code used in the view ribbon so I can duplicate that.
This is amazing. Found this site with all the code to replicate and Mso ribbon code from any windows tab and use it in your own custom tab.
Hope this helps others building their own custom ribbons in excel!
Here is what I needed to recreate the show|hide gridlines in the Office Ribbonx Editor:
<box id="SH2" boxStyle="horizontal">
<checkBox idMso="GridlinesExcel" />
<box/>
Cheers
https://www.rondebruin.nl/win/s2/win016.htm
Scroll to the bottom of his page and you'll see links to the following:
Download example files?
But how do you know the RibbonX to duplicate the groups in the Ribbon, in the downloads below you can find the RibbonX to hide the built-in groups and to duplicate them so you have full control to change them the way you want.
Download this file from the Microsoft site: Office 2010: Office Fluent User Interface Control Identifiers
Download this file from the Microsoft site: Office 2013: Office Fluent User Interface Control Identifiers
Download this file from the Microsoft site: Office 2016: Office Fluent User Interface Control Identifiers
See also github : https://github.com/OfficeDev/office-fluent-ui-command-identifiers
Excel 365 idMso's (9-July-2020), in the example files I duplicate every group in the Ribbon.
Note: Will add the Draw tab soon
Download Excel 365 example files
Creating from blank Powerapp canvas Sharepoint lookup fields are not visible when editing form.
It is working fine if I start creating my app from Sharepoint data however I need tablet/web layout. I am using on-prem Sharepoint data and a gateway.
Update: As a workaround I was able to convert my phone layout app derived from sharepoint list to a tablet layout by saving to local folder and updating the properties json file.
Steps:
Save phone layout app created from sharepoint data to local folder.
Create a blank app from tablet layout and save to local folder.
Rename both .msapp files by adding the .zip extension.
Extract both file to one directory
open the properties.json file of both apps and update the LocalConnectionReferences, DocumentLayoutWidth, DocumentLayoutHeight, DocumentLayoutOrientation, DocumentAppType to be the same as the value of the blank app
Save and drag updated properties.json to the original zip file.
Rename from zip to msapp extension.
Reopen from powerapps, browse from local folder.
Click App Settings.Click Screen size + orientation.
In the Size radio button, select 3:2. Click Apply.Click Save.
In the Size radio button, select 16:9.Click Apply.Click Save.
Would you be willing to try this method? (You can mute the sound if it bothers you.)
https://www.youtube.com/watch?v=TGhiNakRx6Q
If you don't like that approach:
Forms: Try selecting the form control, then use the right properties panel to click on edit fields. The lookup column should be listed in the area with the checkboxes. If it is a brand new lookup column that you recently added to SharePoint, then try saving and closing your app, then reopening to force a hard refresh of the data.
Galleries: Click on the label control where you want the lookup, then use the formula bar TEXT property and use the formula ThisItem. followed by the field name then followed by another . (dot) then Value.
I'm using Office 2010 interop and C# 4. How can I convert just the 1st page of a word document to PDF? This question ("How do I convert Word files to PDF programmatically?") helped me to get started but it only shows me how to save the whole document as PDF.
Is there a way:
to save just the 1st page as PDF? (most ideal option)
delete all remaining pages and then save as PDF?
How do I go about doing it?
You can click on Save As, change the type to PDF, and above the "save" button, you have an option button. Click on that, and you should have the choice to select which pages you want to convert to PDF.
Use the SaveasPdf option and save the entire document to Pdf.
To get the first page you can use PDFSharp opensource library for processing PDF using C#.
Here is an example to split pdf documents.
In case it's helpful for someone, in Word 2016, select Save As option, choose PDF as the file format, on this same window once you've done this a new button 'Options' then will appear to the left of the OK button, click on this and choose the page range that you want save.
Using Document.ExportAsFixedFormat is more like it -> MSDN
Then you simply write something like this:
doc.ExportAsFixedFormat(path, WdExportFormat.wdExportFormatPDF, Item: WdExportItem.wdExportDocumentWithMarkup, CreateBookmarks: WdExportCreateBookmarks.wdExportCreateHeadingBookmarks,
Range: WdExportRange.wdExportFromTo, From: 1, To: 1);
I have several Infopath form templates on my sharepoint site. Normally, I have to go to each library, then click "Add document" to open InfoPath. Instead, I would like to build a web part that displays all of the titles (of the forms and therefore of the libraries) and open Infopath with one click on the form name. How can I do this?
The easiest way to solve this is by creating a Content Editor WebPart in which you add links to the forms.
1) Go to the library you want to add and click the "add" button
2) Copy the url of the newly opened page (InfoPath form)
3) Add a new hyperlink to the CEWP and paste the url
Repeat this steps for all lists.