PDF bookmarks with Visual Basic 6 and XI R2

Hi there,
I've been looking for a way to create PDFs with bookmarks in VB 6 for several days now. I've come over some statements saying that it isn't possible with VB6 but with .NET only. Is this true?
I'm using VB6SP5 with CR XI Release 2 and also habe 2008 installed. I'm creating PDFs successfully with XI Release 1.
Thanks for any hints & help!!

Hi, thanks for the answer.
I can export a PDF including bookmarks with XI R2 and in 2008 via the Designer. That's not the issue. There is also code for .NET that does this programmatically. Something like this:
Dim crReportDoc as ReportDocument
Dim crExportOptions As ExportOptions
Dim crPDFOptions As PdfFormatOptions
crPDFOptions = New PdfFormatOptions()
crPDFOptions.CreateBookmarksFromGroupTree = True
crExportOptons = crReportDoc.ExportOptions
With crExportOptions
    .ExportFormatOptions = crPDFOptions
End With
The only problem/question is if this is possible in VB6 or not. I have to update a VB6 application to support bookmark export. So I want to use the COM interface instead of .NET classes.
Can you say anything about this?
Edited by: Matthias Max on Dec 3, 2008 2:55 PM

Similar Messages

  • Can you tell me how to measure audio signal frequency in measurement studio with visual basic 6.0?

    I'd like to measure two differential input signal(I.e. A+ and A-),below is two test projects,
    1.connect A+/A- to PCI 6052E card's ACH0/ACH8 ,and refer to GND for testing
    2.connect respectively A+/A- to PCI 6052E card's ACH0/ACH8 for testing
    Could you tell me the details of the second project?and give me a illustration in measurement studio with visual basic 6. 0 about the second?
    In addition,I would like to measure the audio signal frequency,could you give me a illustration in measurement studio with visual basic 6.0?
    Wait for your reply!

    Dear kelven,
    Thank you for contacting National Instruments.
    To address your question, there are Analog Input shipping examples that demonstrate how to measure an analog input differentially, as you specify in (2).
    As for measuring the audio signal frequency, you may want to check out the following KnowledgeBase. The link is:
    http://digital.ni.com/public.nsf/websearch/4b08380530d72d3b86256340004c3005
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • Strange axbridge issue with Visual Basic

    I started having a very strange problem with my axbridge wrapped bean around the time I switched to JDK 1.5. Problem is, I can't seem to get rid of it by rolling back to earlier versions.
    Here's what happens: I create a very simple non-visual bean:
    package pack;
    public class Bean1 {
    public Bean1()
    System.out.println("Constructor");
    public boolean someMethod ()
    System.out.println("1");
    return false;
    I then create Bean1.dll using the packager.exe provided with the JDK, and register it as part of the packaging process.
    Then, I go into Visual Basic 6 and enter this code:
    Private Sub Command1_Click()
    Dim xx As Object
    xx = CreateObject("Bean1.Bean.1")
    End Sub
    On the CreateObject call, Visual Basic gives me the error "Object variable or With block variable not set", which isn't helpful.
    In the Java console with level 5 tracing turned on, I see this:
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@17ba38f, refcount=1
    basic: Registered modality listener
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@9ffe3f
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@9ffe3f
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@17ba38f, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@17ba38f
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Modality pushed
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    The only thing I've found in the bug database that seems even remotely related to this is bug 6391104, which is related to plugins somehow.
    I do not understand why applets are involved in this at all.
    When I try to instantiate the COM object from a C++ program, everything works fine. My problem only seems to occur with Visual Basic (version 6, not .NET).
    This problem seems so fundamental that it seems impossible that no one else has run into it, but there 's nothing about it on any forum or buglist that I've seen. So, I figured there must be something very obscure wrong with my setup. However, I tried installing this on a brand new machine using my trivial case, and I still have the problem. I'm really at my wits' end. Anyone have any ideas?

    You definately want to go to CR 2008. I'd recommed that you call 866-681-3435 and ask about the possibility of getting a 30 day eval.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Need help with Visual BASIC

    I am in an intro to programming course, and I am writing a console on Visual Basic 2013.  My problem with Visual Basic right now is that I cannot get the formula to work.  All of my inputted values end up being 0's.  Am I using incorrect parameters,
    am I misunderstanding how to use arguments; am I not coding correctly?  The scenario for my problem is:
          Areas of Rectangles: The area of a rectangle is the rectangle’s length times its width.  Design a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the
    greater area, or if the areas are the same.
    //My code is 
    Module Module1
        Sub Main()
            Dim LENGTH As Double = 0
            Dim WIDTH As double = 0
            Dim AREA_1 As Double
            Dim AREA_2 As Double
            Dim RECTANGLE As String = " "
            area1(LENGTH, WIDTH)
            areaCalc1(AREA_1, LENGTH, WIDTH)
            area2(LENGTH, WIDTH)
            areaCalc2(AREA_2, LENGTH, WIDTH)
            decision(AREA_1, AREA_2, RECTANGLE)
            displayDec(RECTANGLE)
            Console.WriteLine("Press any key to exit...")
            Console.Read()
        End Sub
        Sub area1(ByVal LENGTH, WIDTH)
            Console.WriteLine("Please input the following for your first rectangle:")
            Console.Write("Length: ")
            LENGTH = Console.ReadLine()
            Console.Write("Width: ")
            WIDTH = Console.ReadLine()
        End Sub
        Sub areaCalc1(ByVal AREA_1, ByRef LENGTH, WIDTH)
            AREA_1 = LENGTH * WIDTH
            Console.WriteLine("This is the area for rectangle 1: " & AREA_1)
        End Sub
        Sub area2(ByVal LENGTH, WIDTH)
            Console.WriteLine("Please input the following for your second rectangle: ")
            Console.Write("Length: ")
            LENGTH = Console.ReadLine()
            Console.Write("Width: ")
            WIDTH = Console.ReadLine()
        End Sub
        Sub areaCalc2(ByVal AREA_2, ByRef LENGTH, WIDTH)
            AREA_2 = LENGTH * WIDTH
            Console.WriteLine("This is the area for rectangle 2: " & AREA_2)
        End Sub
        Sub decision(ByRef AREA_1, AREA_2, ByVal RECTANGLE)
            If AREA_1 < AREA_2 Then
                RECTANGLE = "rectangle 2"
            Else
                RECTANGLE = "rectangle 1"
            End If
        End Sub
        Sub displayDec(ByRef RECTANGLE)
            Console.WriteLine("The rectangle with the greater Area is " & RECTANGLE)
        End Sub
    End Module

    Hi,
      If you are just beginning to program i highly recommend setting the following options in the Visual Studio menu (Tools/Options). Open the Options window and go to the (Projects and Solutions) and click on (VB Defaults). Now set the options as follows.
    Option Strict - On
    Option Explicit - On
    Option Infer - Off
     And probably one of the most important things to do is learning to Debug your code. That will save you hours of headaches when you get unexpected results in your applications. You will know how to track it down and find where in the code your results
    are being thrown off. There are quite a few Debugging tutorials on the internet. Here are a few decent ones.
    Debugging Express
    Breakpoints and Debugging Tools
    If you say it can`t be done then i`ll try it

  • Problems with visual basic and acrobat X

    Hello,
    In visual basic (excel), I had written a program in visual basic (excel) to open a pdf file on the local server.
    Before I updated to acrobat pro X, I had acrobat pro 8 on my pc.
    With the 8 I didn't had any problems to open the pdf-file.
    Now with the X version, it only opens the start window of acrobat x pro.
    Did they changed something in Xversion?
    Does anyone has an idea to solve this problem?
    Below you can find my visual basic code.
    Thanks in advanced !!
    Sylvie
    Code:
    Sub OpenPDF(bestand As String)
    Dim retval
    Dim sAdobeReader As String
    sAdobeReader = Chr(34) & "C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" & Chr(34)
    'sAdobeReader = "C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe"
    retval = Shell(sAdobeReader & Chr(34) & bestand & Chr(34), 0)
    End Sub
    Private Sub SelectedPDF()
    OpenPDF ("N:\11276.pdf")
    End Sub

    This is really a user forum, I think you need a developer forum... maybe SDK?
    http://forums.adobe.com/community/acrobat

  • PCI-GPIB Card with Visual Basic gives blue screen and re-boots PC

    The application makes the "ibsic" call then "ibln" to find devices on the bus. Running the VB program the first time is fine, but if you end the program and re-run a second time, you get a blue screen and the PC reboots when the program reaches the lines that make the first call to the NI-488 functions. If you close out of VB and then restart VB, everything is OK again.
    What is wrong?

    Hi,
    Here's an article that describes the most common blue screen when using VB:
    Why Does My Windows 2000 or XP System Crash When I Use Visual Basic to Program GPIB?
    Hope this helps
    DiegoF

  • Getting Dynamic Context Sensitive Help API to work with Visual Studio 2012 and 64 bit?

    We have RH 9.
    Our developers are working on implementing RH's dynamic CSH API inside of our software product:
    http://help.adobe.com/en_US/robohelp/robohtml/WSa7dd8288c271d662-26f4398e12b0c229082-8000. html
    The instructions our developer found say:
    Call your Help projects with the function RH_ShowHelp. The source code for this function is contained in the support files which you import into your development project. Languages supported are Visual Basic, C/C++, JavaScript, and Java. The files are in C:\Program Files\Adobe\Adobe RoboHelp [version]\CSH API. The files are:
        CSH API\RoboHelp_CSH.cpp (C/C++, dependent on the .h)
        CSH API\RoboHelp_CSH.h (C/C++, dependent on the .cpp)
    I zipped up the CSH API from my RH 9 version and sent it to the developer. We're using Visual Studio 2012.
    But now the dev is asking, "Is there a newer version? This one doesn't compile in win32 without me making some tweaks, and doesn't work at all in x64..." and "Is RoboHelp10 an option? 9 doesn't seem VS2012 compatible or x64 compatible."
    Does anyone know if there are there is a later version of the API available that works for 64-bit / VS 2012?

    Hi,
    The RoboHelp 10 API should work for WebHelp created with RoboHelp 9. Since the RH10 API will now support Multiscreen HTML5 (introduced with RoboHelp 10), I imagine it will work with VS 2012. But I’ve not tried that. You can try the RH10 API, but Adobe won’t support it
    Alternatively: A colleague of mine created a custom C# API some time ago. That might work for you: http://www.wvanweelden.eu/blog/2012/08/03/custom-webhelp-apis
    Greet,
    Willam

  • Examples of using SCXI-1160 Relay Card with Visual Basic 5.0.

    I am starting to develop some VB 5.0 code that interfaces with a PXI/SCXI Chassis. One of the cards that I have to work with is the SCXI-1160.

    At this point in time (5/14/01), I do not believe there are any pre-existing example programs developed in Visual Basic to control an SCXI-1160 switch module.
    However, the process is very easy to explain. You will need to add the NI-SWITCH instrument driver as a DLL reference to your VB program. The DLL file is called niswitch_32.dll and is located at C:\VXIpnp\WinXX\Bin (WinXX = Win95 or WINNT).
    Your program will begin with the niSwitch_init(...) function, and end with the niSwitch_close(...) function. The niSwitch_Connect(...) function can be used to actually make switch connections in your application.

  • Buying a Ipad, does it support Excel with visual basic?

    I live in PC world with Excel and visual basic for an order program.  I would like to know if an Ipad supports Excel and VB.  Any help is greatly appriciated.
    Thank you,
    Gabriel

    Sorry, no Excel on iPad. The iPad equivalent of Excel is called Numbers, an Apple-made app.

  • Programming on a MAC with Visual Basic which is unfortuantely from Windows

    Good evening. I am going to be taking some courses in Visual Basic.
    I presently use a new IMAC computer and no intention of ever going back to PC.
    However in course I need to download and learn Visual Basic which is only windows/microsoft based
    Does anyone know of a program that is similar to the windows VB that I can use?
    Otherwise how would I make the Windows VB work on my MAC, i really do not want to download Windows XP or anyone to work on my MAC, hence reason for switching to leopard and mac.
    all suggestions and help is welcome, look forward to your responses.
    email me as well please and thank you

    Being an outsider to most things programming and almost all things M$
    the brief information I found while reading around Visual Basic, is that it
    no longer has Microsoft support since 2008. While that may not be a big
    issue for those still needing such a beast, there probably is a newer kind
    of technology one could be investing time more wisely into the use thereof.
    Earlier: http://en.wikipedia.org/wiki/Visual_Basic
    Later: http://en.wikipedia.org/wiki/VisualBasic.NET
    Free Express Edition: http://en.wikipedia.org/wiki/MicrosoftVisual_StudioExpress
    +{Since you have a computer which can support a virtual machine (os) and+
    +not need run Windows directly, some software can run without an XP, etc.+
    +And there is an open-source virtual machine available, for Intel-based Mac.+
    +This in addition to better known retail products, details found in a search.}+
    Since the Express Edition above indicates certain tools it provides, one can see
    what kinds of Mac OS X software tools are available to perform similar tasks;
    then check into how compatible those are with the resulting product you seek to
    be engaged in; and if the recipient of said project could use an all-Mac result. In
    their PC; if this is the direction you are considering.
    You can create content in Terminal, in a Mac, or in XCode, and there are a few
    free-ware open source cross-platform programming tools that could be used to
    create a more platform neutral product; from what I've briefly read. However,
    since Microsoft is playing to their own field, you may find if you have to be there
    you will have to get a Virtual Machine to run Windows in the Mac or hope to get
    a virtual machine that also can run just the Windows app without Windows in it.
    Or, have an old cheap PC off to the side, and put your Windows software into it.
    Then keep your modern-era stuff alive in your Mac. If you have Windows-only
    clients, some of them may well be using their XP into the next century...
    Good luck & happy computing!
    {PS: this topic area is within the section for older PPC iMac G4 series computers.}

  • Visual basic 2013 and sql server 2014

    now a days I am using visual basic 2013 front end and sql sever back end
    I want that when I enter custID on vb form in a textbox and press enter all the relevant record of the entered cutID get display on the respective textbox. Please do help me sen code on my email is [email protected]
    I am using the following code:-
    Private Sub txtCno_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles
    txtCNo.KeyDown
            If e.KeyCode = Keys.Enter Then
                cn.Open()
                Dim cmd As New SqlCommand("SELET * FROM course WHERE cno=" & Val(txtCNo.Text))
                cmd.ExecuteNonQuery()
                cn.Close()
                txtCNo.Text = ""
                txtName.Text = ""
                txtNoDay.Text = ""
            End If
        End Sub

    Hi hrjafri,
    As the issue is more related to Visual Basic programming, I would like to recommend you post the question in the Visual Basic forum at 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral . It is appropriate and more experts will assist you.
    Additionally, there are a related article and a similar thread for your reference.
    How To Use A Database In Your Program
    http://bytes.com/topic/net/insights/635615-how-use-database-your-program
    Retriving data from sql server into textbox
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f405a590-eda3-454e-a486-f90042c32c48/retriving-data-from-sql-server-into-textbox-using-visual-basic-2008?forum=vbgeneral
    Thanks,
    Lydia Zhang

  • PDF made with distiller vs drag and drop on Acrobat icon.

    How is the file handled differently if I us the stand alone distiller verses just dragging and dropping, say an .eps to the Adobe Acrobat Pro program Icon. I have this question because I have found using distiller on occasion will not give me a correct font as apposed to drag and drop on Acrobat Icon which will keep the font correct. I'm using Acrobat Pro on a 2 X 2.66 Dual Core Intel Xeon Mac and OSX 10.5.8.

    This is exactly how I understood this to work as well. …and yet the resulting PDF is not the same in the tests I have done.
    But, I have taken the same exact .eps file and draged it into the distiller window and had certin fonts not show correctly in the resulting PDF. When I take this same exace .eps and drag it to the Acrobat icon it creates a PDF file with all fonts showing correctly. I was looking for some insite into why this was the case. 

  • Preparing for CLAD exam with LV Basics I and II

    Hi
    This is my first post, so I want to say hello to all the users. I am currently preparing for CLAD exam. I participate in a course containing material from Core 1 and Core 2. I also have a CBT Labview Basics I and II kit. Does this CBT kit still cover all topics needed to pass this exam? It says that it`s almost 6 years old, so I want to ensure that it`s still worth of using it. Thanks for all the answers.

    Another couple things to add. I posted this comment a little while ago which reiterates what ajmartin said: http://forums.ni.com/t5/LabVIEW/Do-I-need-Core-3-to-do-CLAD-exam/m-p/1402686#M546312
    "Also be aware, I've spoken to quite a few CLAD exam takers in the last year and they all agree that the current CLAD exams are much harder and trickier than the sample exams here on ni.com. One taker for instance missed only one question the first time he took the sample CLAD exam but failed the actual exam by a couple questions. So make sure you're overprepared!"
    Someone on the NI community made a pretty comprehensive list of preparation materials here:
    http://decibel.ni.com/content/docs/DOC-14014 
    Additionally, quite often we work with preparing people for the CLAD exam so I made a video examining a very common type of CLAD question:
    http://blog.sixclear.com/post/2702910705/clad-exam-prep-1
    You can take a look at the notes there which have a few more links to CLAD preparation resources. I'll include this one where someone on the NI community made a pretty comprehensive list of preparation materials:
    http://decibel.ni.com/content/docs/DOC-14014 
    Good luck!
    Brian Spears
    sixclear.com

  • How can i measure the transmision time in gpib with visual basic with more precision if i use time() function?

    I want to take a measurement of the time that i use to make a gpib transmision in a Visual Basic program,i use the function TIME() to take the time in the begining and other time in the end,but this way only give me precision of seconds, and i want miliseconds,can i use other function,other way?
    Can answer in spanish?

    Try using GetTickCount() API function, which provides millisecond precision. If you need more precise timer, try using QueryPerformanceCounter() function.
    Makoto

  • I am using NI-CAN with Visual Basic 5.0. Opening and using the can bus works without any errors

    . When I use ncCloseObject with the same object handle that I use with the other functions, I get an error. The error I get is 80010004. This is a bad parameter error. The only parameter that is used is the Object Handle. How do I eliminate the error?I am using it on a Windows 95 machine and a PCICan card. I cannot close my program and restart it again. It will not reopen the CAN port.

    . When I use ncCloseObject with the same object handle that I use with the other functions, I get an error. The error I get is 80010004. This is a bad parameter error. The only parameter that is used is the Object Handle. How do I eliminate the error?Hello Vernon,
    I've attached an example in VB for CAN below. This example ( Object to Object) transmits data from one port and reads from the other port. If you have a Two port CAN card, then you can connect the cable between the two ports and run this example.
    In any case, you can verify whether you are closing the object handle in the same sequence as the example.
    Let me know if the error still shows up with the example too.
    Attachments:
    nicanvb.zip ‏8 KB

Maybe you are looking for

  • Wireless Connection Problem in Mixed Machine Enviroment

    The Culprits: Mac G5 Dual 2.0ghz w Airport Extreme card (Note no Base Station) (C1) Compaq Presario Laptop AMD 3000+ Broadcom 802.11b/g WLAN (C2) The Crime: C2 has, on multiple attempts been able to connect (or claims to have done so) to a Wireless n

  • ITunes still shows license agreement when iPod is connected

    I have a Nano, and while the songs will sync up with it when it's hooked up to the computer, iTunes won't show anything under the iPod tab except for the license agreement, and it won't let me get past that.

  • Adding Genomic Data

    Has anyone had any experience in using Azure with genomic data? Is it best to create a blob/table/SQL Database? I have a MAP file which maps the SNPs (~65,000) Index Name Chromosome Position GenTrain Score SNP ILMN Strand Then there is the final repo

  • Flash paper swf

    I have used Adobe Fash Paper to convert Word and Excel files to sfw files. Next I insert these swf files as animation into Captivate (both versions). Sometimes this works fine and other times i get three or four rapidly flashing green boxes at the to

  • HDCP error on Samsung LE32R72B

    Hi , I've read about the HDCP error on this community. I have the same problem... Now, when I plug my digibox on my Samsung LE 32R72B, I have almost the same problem ! There is no signal... So I was wondering if it is maybe my HDMI cable, or my TV ?