Quantcast
Channel: General Office Development forum
Viewing all 2257 articles
Browse latest View live

PowerPoint VBA

$
0
0

I am completely new to VBA so any help would be incredibly beneficial.

Is there a way to automate a "checklist" for PPT decks? So for example, I would want the code to run through the slides and tell me...

1. If there are periods missing after sentences.

2. If there is an extra space somewhere.

3. If the font is not the same throughout the presentation.

Thanks!


idMso for Export in Office 2016

$
0
0

I am trying to manage the Backstage menu "Export" that is present in Office 2016, but am not able to find the correct XML object name. The menu appears below "Share", which hasidMso="TabShare", but it does not appear to be "TabExport" or "Export".

Need help in bulding query string url in Visio shape hyperlinks

$
0
0

Hi I wanted to build dynamic hyperlinks for Visio shapes using shape data value please help me in doing that.

For Example I wanted to have shape name in query string of url  ie. http://www.testorg.com?name={Visio Shape Name}

I am using Visio Professional 2016

Thanks,


Getting error ": Error HRESULT E_FAIL has been returned from a call to a COM component." at running Console application for generating PPT

$
0
0
Dear All,

I am generating PPT slides with multiple charts on a single slide using C# and com library Microsoft.Office.Interop.PowerPoint.

I have tested it on both office 2010 and office 2013. But sometimes get error :" Error HRESULT E_FAIL has been returned from a call to a COM component". This error occurance is dynamic i.e sometimes happen sometimes not. 

Also above error mostly comes at below line of code at Microsoft.Office.Interop.PowerPoint.Chart.SetElement(MsoChartElementType Element).

Sometimes exception excel and ppt both crashes while running.These are major issues.

Please provide solution.

Thanks,

Naveen

Stealth Mode Create Visio Document from C# Desktop App

$
0
0

I'd like to insure that the user can't get his mouse pointer into the Visio instance while I'm creating the document. Is there a way to do this (see below) so that nothing pops up on the task bar? Having the drawing run as fast as possible is also very important.

m_visioApp = new Visio.Application();

Once the document has been created, I'm using this to save it:

string docPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + @"\test\Vigilant.vsd";
 m_activeDocument.SaveAs(docPath);
and then loading the file into the Visio viewer OCX. Is there a way to send m_activeDocument to the viewer without writing it to disk first?

Only a couple of remaining C# Visio Questions

$
0
0

I am using C# code to generate a Visio document.  When I create a shape using the Basic Flowchart Shapes(US Units), the placed shape (such as the Process shape) has 7 pairs of property name and value already attached to the shape.

  • Cost
  • Process Number
  • Owner
  • Function
  • Start Date
  • End Date
  • Status

This happens just manually dropping the Process Shape within Visio itself.  I don't want these pre-designed Shape Data values because I'm creating my own in code.

My question is - what can I do to processObject after I drop it on the active page to get rid of all those default shape data rows?

var processObject = m_activePage.Drop(processStencil, 1, 3);

How to define custom prefixes for datatypes in VBA?

$
0
0

Hi

I seem to recall there's a way to get automatic datatypes in declarations based on prefix. For example:

Dim intUser

will automatically make this an Integer type, because of the Int prefix. IIRC, the programmer has to define someplace what prefixes go with what types. 

Anyone know about this?

thx

Office 2016 regression: OneNote 2016 reproducibly crashes when retrieving page content using the OneNote API

$
0
0

I have found VBA code for Word that gets the contents of a OneNote notebook using the OneNote API.

This crashes when GetHierarchy is called to retrieve page content.

The following code crashes OneNote when executing

oneNote.GetHierarchy GetAttributeValueFromNode(pageNode, "ID"), hsChildren, pageXml

Option Explicit ' OneNote 2010 ' Demonstrate the GetHierarchy method. ' Use any VBA host including Excel 2010, PowerPoint 2010, ' or Word 2010. ' OneNote 2010 is not a VBA host. ' In your VBA host, add references to the following ' external libraries using the Add References dialog: ' Microsoft OneNote 14.0 Object Library ' Microsoft XML, v6.0 ' OneNote's GetHierarchy method allows you ' to get metadata and data about the OneNote ' Notebooks. ' Paste all this code into a module, ' place the cursor within the ' ListOneNotePageContentFromFirstPageOfFirstSectionOfFirstNotebook ' procedure, and press F5. ' ' The ListOneNotePageContentFromFirstPageOfFirstSectionOfFirstNotebook ' procedure uses the MSXML library to parse the returned XML ' from OneNote and output Notebook metadata ' to the Immediate window of your VBA host. ' The code iterates through the first Notebook, then its first Section, ' and finally gets the first Page and outputs the Page's content ' to the Immediate window. Sub ListOneNotePageContentFromFirstPageOfFirstSectionOfFirstNotebook() ' Connect to OneNote 2010. ' OneNote will be started if it's not running. Dim oneNote As OneNote12.Application Set oneNote = New OneNote12.Application ' Get all of the Notebook nodes. Dim nodes As MSXML2.IXMLDOMNodeList Set nodes = GetFirstOneNoteNotebookNodes(oneNote) If Not nodes Is Nothing Then ' Get the first OneNote Notebook in the XML document. Dim node As MSXML2.IXMLDOMNode Set node = nodes(0) Dim noteBookName As String noteBookName = node.Attributes.getNamedItem("name").Text ' Get the ID for the Notebook so the code can retrieve ' the list of sections. Dim notebookID As String notebookID = node.Attributes.getNamedItem("ID").Text ' Load the XML for the Sections for the Notebook requested. Dim sectionsXml As String oneNote.GetHierarchy notebookID, hsSections, sectionsXml ', xs2010 Dim secDoc As MSXML2.DOMDocument60 Set secDoc = New MSXML2.DOMDocument60 secDoc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2007/onenote""" If secDoc.LoadXML(sectionsXml) Then Dim secNodes As MSXML2.IXMLDOMNodeList Set secNodes = secDoc.DocumentElement.SelectNodes("//one:Section") If Not secNodes Is Nothing Then Dim secNode As MSXML2.IXMLDOMNode Set secNode = secNodes(0) Dim sectionName As String sectionName = secNode.Attributes.getNamedItem("name").Text Dim sectionID As String sectionID = GetAttributeValueFromNode(secNode, "ID") ' Load the XML for the Pages of the Section requested. Dim pagesXml As String oneNote.GetHierarchy sectionID, hsPages, pagesXml ', xs2010 Dim pagesDoc As MSXML2.DOMDocument60 Set pagesDoc = New MSXML2.DOMDocument60 pagesDoc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2007/onenote""" If pagesDoc.LoadXML(pagesXml) Then Dim pageNodes As MSXML2.IXMLDOMNodeList Set pageNodes = pagesDoc.DocumentElement.SelectNodes("//one:Page") If Not pageNodes Is Nothing Then Dim pageNode As MSXML2.IXMLDOMNode Set pageNode = pageNodes(0) ' Print out data about the Notebook, Section, and the first Page, ' including its content. Debug.Print "Notebook Name: " & noteBookName Debug.Print "Notebook ID: " & notebookID Debug.Print " Section Name: " & sectionName Debug.Print " Section ID: " & sectionID Debug.Print " Page Name: " & GetAttributeValueFromNode(pageNode, "name") Debug.Print " ID: " & GetAttributeValueFromNode(pageNode, "ID") Dim pageXml As String oneNote.GetHierarchy GetAttributeValueFromNode(pageNode, "ID"), hsChildren, pageXml ', xs2010 Dim pageDoc As MSXML2.DOMDocument60 Set pageDoc = New MSXML2.DOMDocument60 If pageDoc.LoadXML(pageXml) Then Debug.Print " *** Page Content ***" Debug.Print pageXml Else MsgBox "OneNote 2010 Page XML data failed to load." End If Else MsgBox "OneNote 2010 Page nodes not found." End If Else MsgBox "OneNote 2010 Pages XML data failed to load." End If Else MsgBox "OneNote 2010 Section nodes not found." End If Else MsgBox "OneNote 2010 Section XML data failed to load." End If Else MsgBox "OneNote 2010 XML data failed to load." End If End Sub Private Function GetFirstOneNoteNotebookNodes(oneNote As OneNote12.Application) As MSXML2.IXMLDOMNodeList ' Get the XML that represents the OneNote notebooks available. Dim notebookXml As String ' OneNote fills notebookXml with an XML document providing information ' about what OneNote notebooks are available. ' You want all the data and thus are providing an empty string ' for the bstrStartNodeID parameter. oneNote.GetHierarchy "", hsNotebooks, notebookXml ', xs2010 ' Use the MSXML Library to parse the XML. Dim doc As MSXML2.DOMDocument60 Set doc = New MSXML2.DOMDocument60 doc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2007/onenote""" If doc.LoadXML(notebookXml) Then Set GetFirstOneNoteNotebookNodes = doc.DocumentElement.SelectNodes("//one:Notebook") Else Set GetFirstOneNoteNotebookNodes = Nothing End If End Function Private Function GetAttributeValueFromNode(node As MSXML2.IXMLDOMNode, attributeName As String) As String If node.Attributes.getNamedItem(attributeName) Is Nothing Then GetAttributeValueFromNode = "Not found." Else GetAttributeValueFromNode = node.Attributes.getNamedItem(attributeName).Text End If End Function

Where do I go from here?

Note: this is a regression in OneNote 2016, OneNote 2013 worked fine.


Problems automating Visio in Windows Server 2012

$
0
0

Hi,

We currently encountered a problem automating Visio (2010) under Windows Server 2012. Our job is simply open a Visio diagram, make some small changes (Shape Texts), and then export it to SVG and HTML.

It has been working fine in Windows Server 2003, 2008 and 2008 R2. But in Windows Server 2012, we got this error:

System.Runtime.InteropServices.COMException (0x86DB03E7): An exception occurred.   at Microsoft.Office.Interop.Visio.PageClass.Export(String FileName)

Some notes:

1. We run our job as Windows Service under a specific service account (also added as Local Administrator on the server)

2. We can't find any information about the error:  0x86DB03E7. It is a mystery.

3. When trying to find solutions on two Windows Server 2012 instances running in Azure, we managed to get it through by wrapping automation code inside an STA Thread. And after that, the error has just gone, even when we switched back to the original automation code.

4. When trying to test same work-around (using STA Thread) on an Windows Server 2012 instance hosted in a Hyper-V. It didn't help. So we replaced the Window Service with a Console Application (to run in interactive mode), then automation code worked. However, as long as we switch back to use Windows Service, same error happens.

Does anyone know what the error 0x86DB03E7 is about? What change in Windows Server 2012 could be the cause of this? Or how should we modify our code in order to get it work under Windows Server 2012?

P.S.: We are aware of Server-side Automation warning from MS, so please discard any general advise about that. Our product's main features depend a lot on Visio (and other Office Applications) which is by far there is no such a diagramming tool supporting interoperabilities as we need like Visio.

Thanks in advance.

Best Regards,

Duy 


Convert ppt,pptx,xls,doc to pdf

$
0
0

How to convert ppt,doc ,xls or etc. to pdf.

Please provide one sample regarding this which contains all logic about this

Inconsistent Behavior Glued Shapes

$
0
0

Am currently using the GluedShapes - visGluedShapesAll1D Method , and i noticed an inconsistent behavior; when i added a container on the page, noting that this containeris not connected to any shape, anddoesn't contain any shape in the page such as,

The debug.print for GluedShapes.Name before adding the container on the page (without  connecting it to any object) were:

Dynamic Connector

Dynamic connector.5

The debug.print for GluedShapes.Name after adding the container were:

Circle

Dynamic connector.5

Noting that the selected shape is an ellipse which is connected with two shapes (Rectangle: incoming node, and Circle Outgoing node) using two dynamic connectors (Dynamic Connector, Dynamic Connector.5) respectively.

Is there any explanation for this issue?

Public Sub ConnectedShapes_Outgoing_Example()
' Get the shapes that are connected to the selected shape
' by outgoing connectors.
    Dim vsoShape As Visio.Shape
    Dim lngShapeIDs() As Long
    Dim intCount As Integer


    If ActiveWindow.Selection.Count = 0 Then
        MsgBox ("Please select a shape that has connections")
        Exit Sub
    Else
        Set vsoShape = ActiveWindow.Selection(1)
    End If

    lngShapeIDs = vsoShape.GluedShapes(0, "")

    Debug.Print "Shapes at the end of outgoing connectors:"
    For intCount = 0 To UBound(lngShapeIDs)
       Debug.Print ActivePage.Shapes(lngShapeIDs(intCount)).Name


    Next
End Sub



OneNote 2016: Cannot get the Publish method to work

$
0
0

I'm trying to convert OneNote content to Word using the Publish method of the OneNote API.

The VBA code I'm using (modified from code found on the 'net, derived from an old MSDN sample) is the following:

Private Function GetFirstOneNoteNotebookNodes(oneNote As oneNote.Application) As MSXML2.IXMLDOMNodeList
    ' Get the XML that represents the OneNote notebooks available.
    Dim notebookXml As String
    ' OneNote fills notebookXml with an XML document providing information
    ' about what OneNote notebooks are available.
    ' You want all the data and thus are providing an empty string
    ' for the bstrStartNodeID parameter.
    oneNote.GetHierarchy "", hsNotebooks, notebookXml ', xs2010

    ' Use the MSXML Library to parse the XML.
    Dim doc As MSXML2.DOMDocument60
    Set doc = New MSXML2.DOMDocument60
    doc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2013/onenote"""

    If doc.LoadXML(notebookXml) Then
        Set GetFirstOneNoteNotebookNodes = doc.DocumentElement.SelectNodes("//one:Notebook")
    Else
        Set GetFirstOneNoteNotebookNodes = Nothing
    End If
End Function


Private Function GetAttributeValueFromNode(node As MSXML2.IXMLDOMNode, attributeName As String) As String
    If node.Attributes.getNamedItem(attributeName) Is Nothing Then
        GetAttributeValueFromNode = "Not found."
    Else
        GetAttributeValueFromNode = node.Attributes.getNamedItem(attributeName).Text
    End If
End Function



Sub PublishFirstPageOfFirstSectionOfFirstNotebookToWord()
    ' Connect to OneNote 2016.
    Dim oneNote As oneNote.Application
    Set oneNote = New oneNote.Application

    ' Get all of the Notebook nodes.
    Dim nodes As MSXML2.IXMLDOMNodeList
    Set nodes = GetFirstOneNoteNotebookNodes(oneNote)
    If Not nodes Is Nothing Then
        ' Get the first OneNote Notebook in the XML document.
        Dim node As MSXML2.IXMLDOMNode
        Set node = nodes(0)
        Dim noteBookName As String
        noteBookName = node.Attributes.getNamedItem("name").Text

        ' Get the ID for the Notebook so the code can retrieve
        ' the list of sections.
        Dim notebookID As String
        notebookID = node.Attributes.getNamedItem("ID").Text

        ' Load the XML for the Sections for the Notebook requested.
        Dim sectionsXml As String
        oneNote.GetHierarchy notebookID, hsSections, sectionsXml ', xs2010

        Dim secDoc As MSXML2.DOMDocument60
        Set secDoc = New MSXML2.DOMDocument60
        secDoc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2013/onenote"""

        If secDoc.LoadXML(sectionsXml) Then
            Dim secNodes As MSXML2.IXMLDOMNodeList
            Set secNodes = secDoc.DocumentElement.SelectNodes("//one:Section")

            If Not secNodes Is Nothing Then
                Dim secNode As MSXML2.IXMLDOMNode
                Set secNode = secNodes(0)

                Dim sectionID As String

                For Each secNode In secNodes

                sectionID = GetAttributeValueFromNode(secNode, "ID")

                ' Load the XML for the Pages for the Section requested.
                Dim pagesXml As String
                oneNote.GetHierarchy sectionID, hsPages, pagesXml ', xs2010

                Dim pagesDoc As MSXML2.DOMDocument60
                Set pagesDoc = New MSXML2.DOMDocument60
                pagesDoc.setProperty "SelectionNamespaces", "xmlns:one=""http://schemas.microsoft.com/office/onenote/2013/onenote"""

                If pagesDoc.LoadXML(pagesXml) Then
                    Dim pageNodes As MSXML2.IXMLDOMNodeList
                    Set pageNodes = pagesDoc.DocumentElement.SelectNodes("//one:Page")

                    If Not pageNodes Is Nothing Then
                        Dim pageNode As MSXML2.IXMLDOMNode
                        Set pageNode = pageNodes(0)

                        Dim pageName As String
                        Dim pageID As String

                        For Each pageNode In pageNodes
                            On Error Resume Next
                            pageName = GetAttributeValueFromNode(pageNode, "name")
                            pageID = GetAttributeValueFromNode(pageNode, "ID")

                            ' Creating folder path for output for section
                            Dim sectionName As String
                            sectionName = GetAttributeValueFromNode(secNode, "name")
                            Dim sectionPath As String
                            sectionPath = sectionName & "\"

                            ' Get the user's specified output folder.
                            Dim outputFolder As String
                            outputFolder = FILE_PATH

                            ' Create a file name using the page's name.
                            Dim fileName As String
                            fileName = pageName & ".docx"

                            ' Combine the two values into a single
                            ' Variable so it's easier to use twice.
                            Dim publishContentTo As String
                            publishContentTo = outputFolder & sectionPath & fileName
                            publishContentTo = Replace(publishContentTo, "/", "_")

                            ' Publish the page content to a PDF file
                            ' in the user specified folder.
                            ' The last parameter is not necessary unless you use the
                            ' pfEmf enum.
                            ' Note this method will fail if the file already exists
                            ' at the location specified.
                            On Error GoTo 0
                            oneNote.Publish pageID, publishContentTo, pfWord
                            On Error Resume Next
                        Next

                    Else
                        MsgBox "OneNote 2016 Page nodes not found."
                    End If
                Else
                    MsgBox "OneNote 2016 Pages XML data failed to load."
                End If
                Next
            Else
                MsgBox "OneNote 2016 Section nodes not found."
            End If
        Else
            MsgBox "OneNote 2016 Section XML data failed to load."
        End If
    Else
        MsgBox "OneNote 2016 XML data failed to load."
    End If

End Sub

The "oneNote.Publish pageID, publishContentTo, pfWord" statement fails as follows:

Any clue?

Add PDF attachment to OneNote page using Microsoft Graph API request

$
0
0

Hi,

I want to add a PDF file to a OneNote page (attachment + printout). Has anyone achieved this? The page gets created and I see a PDF file shortcut. But when I click the PDF file icon on the OneNote page I get a message that the document is probably corrupt. Maybe the binary stream is not correct? Does anyone know how to correctly generate a binary or MIME stream from a pdf file?

An example is showed on this page: https://graph.microsoft.io/GraphDocuments/api-reference/beta/api/notes_post_pages.htm. But is does not show how to generate the binary stream for a file.

See the blocks below for my code. The binary stream is generated using this function: 

function convertFileToBase64viaFileReader(url, callback){
    var xhr = new XMLHttpRequest();
    xhr.responseType = 'blob';
    xhr.onload = function() {
      var reader  = new FileReader();
      reader.onloadend = function () {
         callback(reader.result);
      }
      reader.readAsDataURL(xhr.response);
    };
    xhr.open('GET', url);
    xhr.send();
}

--MyAppPartBoundaryContent-Dis-data; name="Presentation"
Content-type: text/html<!DOCTYPE html><html><head><title>OneNote test page</title></head><body><div style=";width:280px;top:120px;left:68px"><p>Divs, images, and objects that are direct children of the body can be absolutely positioned elements on the page.</p><p>The body must specify data-absolute-enabled=&quot;true&quot; and the absolutely positioned elements must specify style=&quot;&quot;.</p><p>An absolutely positioned div can contain non-absolutely positioned elements, such as images and objects.</p></div><object data-attachment="Document.pdf" data="name:EmbeddedFileBlocksName1"  type="application/pdf" /></body></html>

--MyAppPartBoundary

Content-Dis-data; name="EmbeddedFileBlocksName1"
Content-type:application/pdf

JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhubC1OTCkgL1N0cnVjdFRyZWVSb290IDEwIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2JqDQoyIDAgb2JqDQo8PC9UeXBlL1BhZ2VzL0NvdW50IDEvS2lkc1sgMyAwIFJdID4+DQplbmRvYmoNCjMgMCBvYmoNCjw8L1R5cGUvUGFnZS9QYXJlbnQgMiAwIFIvUmVzb3VyY2VzPDwvRm9udDw8L0YxIDUgMCBSPj4vRXh0R1N0YXRlPDwvR1M3IDcgMCBSL0dTOCA4IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0L0ltYWdlQi9JbWFnZUMvSW1hZ2VJXSA+Pi9NZWRpYUJveFsgMCAwIDU5NS4yNSA4NDJdIC9Db250ZW50cyA0IDAgUi9Hcm91cDw8L1R5cGUvR3JvdXAvUy9UcmFuc3BhcmVuY3kvQ1MvRGV2aWNlUkdCPj4vVGFicy9TL1N0cnVjdFBhcmVudHMgMD4+DQplbmRvYmoNCjQgMCBvYm...WYvU2l6ZSAyNC9XWyAxIDQgMl0gL1Jvb3QgMSAwIFIvSW5mbyA5IDAgUi9JRFs8OTI2RDNFMTM5NzcyMzc0MzgzQkY2NkJCQjRBNkUzMTU+PDkyNkQzRTEzOTc3MjM3NDM4M0JGNjZCQkI0QTZFMzE1Pl0gL0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggOTE+Pg0Kc3RyZWFtDQp4nDXNuxGAMAwDUDkfEqhgAlgjW7AQgzAI1HQMwxDBscCF3/lOOgM6tYruCWhs5DDkMvxMbiOc5DHiAjgtjEgkk5505IsMrbD/lxBHPAkkajKt9iEX4AX+YQj8DQplbmRzdHJlYW0NCmVuZG9iag0KeHJlZg0KMCAyNQ0KMDAwMDAwMDAxMCA2NTUzNSBmDQowMDAwMDAwMDE3IDAwMDAwIG4NCjAwMDAwMDAxMjUgMDAwMDAgbg0KMDAwMDAwMDE4MSAwMDAwMCBuDQowMDAwMDAwNDQ4IDAwMDAwIG4NCjAwMDAwMDA3OTkgMDAwMDAgbg0KMDAwMDAwMDk2NyAwMDAwMCBuDQowMDAwMDAxMjA2IDAwMDAwIG4NCjAwMDAwMDEyNTkgMDAwMDAgbg0KMDAwMDAwMTMxMiAwMDAwMCBuDQowMDAwMDAwMDExIDY1NTM1IGYNCjAwMDAwMDAwMTIgNjU1MzUgZg0KMDAwMDAwMDAxMyA2NTUzNSBmDQowMDAwMDAwMDE0IDY1NTM1IGYNCjAwMDAwMDAwMTUgNjU1MzUgZg0KMDAwMDAwMDAxNiA2NTUzNSBmDQowMDAwMDAwMDE3IDY1NTM1IGYNCjAwMDAwMDAwMTggNjU1MzUgZg0KMDAwMDAwMDAxOSA2NTUzNSBmDQowMDAwMDAwMDIwIDY1NTM1IGYNCjAwMDAwMDAwMjEgNjU1MzUgZg0KMDAwMDAwMDAwMCA2NTUzNSBmDQowMDAwMDAxODcyIDAwMDAwIG4NCjAwMDAwMDIxMDUgMDAwMDAgbg0KMDAwMDA4OTE4OCAwMDAwMCBuDQp0cmFpbGVyDQo8PC9TaXplIDI1L1Jvb3QgMSAwIFIvSW5mbyA5IDAgUi9JRFs8OTI2RDNFMTM5NzcyMzc0MzgzQkY2NkJCQjRBNkUzMTU+PDkyNkQzRTEzOTc3MjM3NDM4M0JGNjZCQkI0QTZFMzE1Pl0gPj4NCnN0YXJ0eHJlZg0KODk0NzgNCiUlRU9GDQp4cmVmDQowIDANCnRyYWlsZXINCjw8L1NpemUgMjUvUm9vdCAxIDAgUi9JbmZvIDkgMCBSL0lEWzw5MjZEM0UxMzk3NzIzNzQzODNCRjY2QkJCNEE2RTMxNT48OTI2RDNFMTM5NzcyMzc0MzgzQkY2NkJCQjRBNkUzMTU+XSAvUHJldiA4OTQ3OC9YUmVmU3RtIDg5MTg4Pj4NCnN0YXJ0eHJlZg0KOTAxMzQNCiUlRU9G

--MyAppPartBoundary--

$.ajax({
	      type: "POST",
	      url: "https://graph.microsoft.com/beta/me/notes/sections/" + SectionID + "/pages",
	      headers: {
	        'Authorization': 'Bearer ' + token,
	        'Content-Type': 'multipart/form-data; boundary=MyAppPartBoundary'
	      },
	      data: htmlContent
	    }).done(function (response) {
	      console.log('Successfully fetched notebooks from OneNote.');
	      console.log(response);
	    }).fail(function (error) {
	      console.log(error);
	      console.log('Fetching files from OneNote failed.');
	    });


Start Menu can't open-SRX1319894103

$
0
0

We have contact you on Dec 29, 15 with case #1319894103, however this case didn't work, can you help to solve the problem again.

Thanks

Winnie

Using API to get subscription spesific information via code

$
0
0

Hi,

This may be wrong category, but here we go.

I'm trying to gather information about my Office365 subscription plan via the REST api. I want detailed information about subscription, licenses, users and software/services. 

I looked in the Office 365 Reporting web service and Office 365 Management Activity API, but cant seem to find what i'm looking for. Anyone got experience with this? Please explain or refer me to documentation about this. Maby you can push me in the right direction

br

/Henrik


How can I get a refererence to the deleted PowerPoint comment when the user clicks Delete Comment?

$
0
0

Is there a way to do this? I have done so in Word using VBA, but I can't seem to find away to accomplish it in PowerPoint.

Thanks.

Writing InfoPath 2010 RTF values to SQL Server 2012

$
0
0

Hi all,

I have an InfoPath 2010 form with rich text field, which contains

  1. formatted text, such as bullet point or numberings
  2. formatted tables
  3. Charts and graphs
  4. images, such as a screenshot of a spreadsheet...etc

All these in a rich text control field.  Question:  Is there a way to capture all these values without losing the formatting and layout of the content of the RTF field value, then

  1. serialize it (if that's the correct word to use) and write to a field in SQL Server (2012) table.
  2. Since a RTF in InfoPath 2010 is XHTML, what field type would best suit this kind of content on SQL Server?  BLOB type?

Thanks in advance,

G.




How can I set Text Color (and Background color) in PPT 2007

$
0
0
Hi,

I am trying to set the color of a text in PPT from my C++ project.

The attribute TextRange->Font->Color cannot be modified ?!

I should feel much obliged if you can provide me any further help.

Thanks.

TEXT DRIVER

$
0
0
HOW CAN I DOWN LOAD MICROSOFT TEXT DRIVER?

Write to SQL Server from InfoPath without web service

$
0
0
Hi all,

My software stack:
2010 - Office, SharePoint
2012 - SQL Server
Win 7

Is there a way to write from an InfoPath 2010 Form Library Form straight to SQL Server without setting up a web service?

Thanks for your thoughts.

G.



Viewing all 2257 articles
Browse latest View live


Latest Images